Use the following example to create a validation rule relationship.
-
In the Desktop Client, find the interface definition to create the validation rule, such as IVTLCheckObjectExistsValidationRule.
-
Select the action required, for example, CheckExists, from one of the three action enum lists: VTLObjectActions, VTLPropActions, and VTLRelActions.
You can select the action depending on what type of validation rule is required, such as an object, property, or relationship rule.
-
Relate the IVTLCheckObjectExistsValidationRule interface to the appropriate action using a drag-and-drop operation.
To automatically generate the validation rule relationship, relate the VTLActionVTLValidationRule to the enum CheckExists.
For more information on creating relationships, see Configuring Relationships.