Implement a clear down handler

You must:

Creating the clear down handler script

1.

Select the New  button on the toolbar and then select the 'Clear Down Handler' option:

2.

Use the appropriate action cells to create the clear down logic (such as updating values in a data table or extended record fields used in VIEW historical reports).

3.

Identify a script variable that is to receive a value from the main script when it clears down. For example, bHungUp.

4.

Click the Start action cell and then its Parameters tab.

5.

In the Name column, enter a string ID preceded by = for associating the variable with the equivalent variable in the parent script. (For example, =HangUpInMenu.) In the Value column, enter the local script variable (bHungUp) that should receive the passed value.

6.

Click Add.

7.

Repeat steps 3 to 6 for further variables that need to be updated when the main script clears.

8.

Save and commit the script.

Linking the main script to the clear down handler script

1.

In the main script, click the Start action cell and then its Call Options tab.

2.

Select the ‘Enable Clear down handler’ check box. Select the clear down handler script to call when this script clears down.

3.

In the Name field, enter the same string ID (preceded by =) that you used in the clear down handler script (=HangUpInMenu). In the Value column, enter the local script variable (bHungUpInMenu) whose value you want to pass to the handler.

4.

Click Add.

5.

Repeat steps 3 and 4 for other variables that need to be updated by the clear down handler when this script clears.

6.

Save and commit the script.