Create a Condition
| This feature is available only in Enterprise Edition. |
You can add a condition to a VPM to filter the rows retrieved from the database tables. Follow the steps below:
-
If necessary, create a VPM as explained in Create a New VPM.
-
Select the Conditions tab at the bottom, and press the ‘Add Condition’ button .

-
Select the Conditions sub-tab.

-
Choose whether the VPM will be triggered based on a particular database table referenced in a query or by a particular physical view referenced in a query:
-
Press the Edit clause button. This opens the ‘Conditions’ dialog box.

-
Specify the desired condition clause.

By default, the condition is based on field names and values. However, you can use the 'Change Value Type' button on the left or right side to create other types of conditions.

-
Make any desired edits to the condition:
-
To delete an existing clause in the condition, click to select the clause, and press Delete.
-
To delete all clauses in the condition, press the Clear button.
-
To change the order of a clause in the condition, click to select the clause, press the Move Up or Move Down button.
-
To change the operator between two clauses (e.g., “and”, “or”), click on the operator to select it, and press the Modify button.

-
To indent or a pair of clauses joined by an “and” or “or” operator, click on the operator in the bottom panel, and press the Indent or Unindent button.

Logical operations within a given set of same-level indented clauses are performed prior to operations outside the indented clause set. (The indent represents the grouping operation of a “parenthesis” within a logical proposition.)
-
-
Press OK to close the ‘Conditions’ dialog box.
-
Repeat the above steps to add any additional clauses to the condition.
-
To add scripted logic that triggers the condition, see Add a Condition Trigger.
-
Enter a name for the condition in the ‘Name’ field.

-
Press the ‘Save’ button to save the VPM.




