The Scripts tab allows you to configure scripts that are attached to specific WorkView object states by providing code or creating the script in a user-friendly, point-and-click environment of Custom Action Rule System.
Scripts and rules can be written and attached to the OnLoad, OnFocus, or OnBlur object states.
To create a script for an object state:
- In the Scripts tab, within the Properties pane, select the state you would like to associate with a script from the Scripts drop-down list.
- Set Handler Type to Script.
- Click Add. A script editor will be displayed.
- Enter the script in the script editor.
To create a rule, follow instructions in Configuring Rules.
You can modify a script by double-clicking on it or by selecting it and clicking Modify.
You can delete a script by selecting it and clicking Remove.
The following script events are available for a view:
Event |
Description |
---|---|
OnFocus |
This event is triggered when a user clicks on the tab of a view in the Client. Note:
This is not supported for screens. |
OnBlur |
This event is triggered when a user navigates from one view tab to another view tab on an object with multiple tabs. Note:
This is not supported for screens. |
OnLoad |
This event is triggered when a view or screen is loaded for an object. |