The following is an example of a script that causes a bill to be reprinted. This script prompts the user to select a bill and then sets up a new bill routing to cause it to be reprinted. This script contains examples of:
We have also supplied an alternate version of this script that has fewer steps (see Reprint A Bill - Short Version). Take the time to contrast these two versions before you decide how to construct your scripts.
Step No. | Step Type | Text Displayed In Script Area | Additional Information On The Step |
---|---|---|---|
5 | Label | Identify the correct account | |
10 | Prompt user | Is the customer associated with the bill currently displayed in the dashboard? |
Prompt Type: Button(s) First Prompt Value - Text: Yes (default turned on), Next Step: 40 Second Prompt Value - Text: No, Next Step: 20 |
20 | Navigate to a page | Navigation Option: Control Central - Main | |
30 | Set focus to a field | Press <i>Continue</i> after you've selected the customer | Destination Field Name: ENTITY_NAME |
40 | Move data |
Source Field Type: Predefined Value Source Field Value: %CONTEXT-ACCOUNTID (note, this is a global variable that contains the ID of the current account) Destination Field Type: Temporary Storage Destination Field Name: SAVED_ID |
|
50 | Conditional Branch |
Compare Field Type: Temporary Storage Compare Field Name: SAVED_ID Condition: = Comparison Field Type: Predefined Value Comparison Field Name: %BLANK If TRUE, Go To Step: 60 If FALSE, Go To Step: 90 |
|
60 | Display text | <font color=red>The dashboard isn't populated with an account.</font> Please select a customer before continuing. | |
70 | Go to a step | Next step: 20 | |
75 | Label | Navigate to Bill Routing page and select desired bill | |
90 | Move data |
Source Field Type: Temporary Storage Source Field Name: SAVED_ID Destination Field Type: Page Data Model Destination Field Name: ACCT_ID Note, this step is done in anticipation of a subsequent step that transfers the user to the bill page. This step simply moves the account ID saved above to some place on the page. The name of the receiving field is important; it must be the same as one of the fields defined on the Navigation Option used to transfer to the destination transaction (this navigation option is defined on the next step). To find the appropriate field name for any transaction, display the navigation option in question. |
|
100 | Navigate to a page | Navigation Option: Bill - Routing (update) | |
110 | Prompt user | Press <font color=orange>OK</font> after a bill has been selected |
Prompt Type: Button(s) First Prompt Value - Text: OK, Next Step: 120 |
115 | Label | User should confirm the bill routing details and Save. | |
120 | Move data |
Source Field Type: Page Data Model Source Field Name: ENDING_BAL Destination Field Type: Temporary Storage Destination Field Name: ENDING_BALANCE |
|
130 | Move data |
Source Field Type: Page Data Model Source Field Name: COMPLETE_DTTM Destination Field Type: Temporary Storage Destination Field Name: COMPLETION_DTTM |
|
140 | Press a button | Button Name: IM_ScrollCtrl_addBtn | |
150 | Set focus to a field | This bill for %ENDING_BALANCE was completed on %COMPLETION_DTTM. <br>Please confirm / change the name and address of the bill. | Destination Field Name: BILL_RTGS$ENTITY_NAME1 |
160 | Set focus to a field | Press the Save button (Alt+S) to save the bill routing information | Destination Field Name: IM_SAVE |
165 | Label | Verify Save | |
170 | Move data |
Source Field Type: Predefined Value Source Field Name: %SAVE-REQUIRED Destination Field Type: Temporary Storage Destination Field Name: SAVE_NEEDED |
|
180 | Conditional Branch |
Compare Field Type: Temporary Storage Compare Field Name: SAVE_NEEDED Condition: = Comparison Field Type: Predefined Value Comparison Field Name: FALSE If TRUE, Go To Step: 210 If FALSE, Go To Step: 190 |
|
190 | Set focus to a field | <font color=red>You have not saved this information!</font> Press <i>Continue</i> after saving. |
Destination Field Name: IM_SAVE (note, this positions the cursor on the save button) |
200 | Go to a step | Next step: 170 | |
205 | Label | Display confirmation | |
210 | Move data |
Source Field Type: Page Data Model Source Field Name: BILL_RTG$BATCH_CD Destination Field Type: Temporary Storage Destination Field Name: BATCH_CODE |
|
220 | Display text | Script complete. The bill will be sent to the recipient the next time the %BATCH_CODE process executes |
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.