Add a Condition Trigger
| This feature is available only in Enterprise Edition. |
To add scripted logic to the VPM row condition, follow the steps below:
-
If necessary, create a VPM as explained in Create a New VPM.
-
Select the Conditions tab at the bottom.

-
Select the Trigger sub-tab.

-
Enter the desired trigger script in the text box at the bottom. The trigger script should use standard JavaScript syntax, and should return the modified list of conditions (e.g., in string
condition, in the last statement of the script).Example 1. Condition trigger scriptif(condition.length > 0) { condition += " and "; } condition += "sa.customers.state = 'CA'"; condition;The following parameters are available for use in the script:
-
Press the ‘Save’ button to save the VPM.