1
Create a service field
Create a service field in the Document Definition.
2
Set the data source
On the Data Source tab, open the Source list and select Flexible Section Variant ID. This field displays the ID of the variant assigned to a document.
3
Create a Database Check rule
On the Rules tab, create a new rule of type Database Check.
4
Set the rule source
In the rule properties, specify Data Set as the source, and select the appropriate set of variants from the list.
5
Add a correspondence check
- Click Add to open the correspondence-check dialog box.
- In Database field, specify the variant name.
- In Document field, specify the form field that must correspond to the variant name.
- Specify the correspondence parameters, and then click OK.
6
Save the record ID to the service field
From the Field where to save record ID list, select the service field you created. For more information about creating and editing rules, see Rule validation.
7
Add a button to the form
Add a Button control to the form (Form → Insert Control → Button).
8
Configure the button
In the button properties, click the Format tab, set the action type to Database Lookup, and select the rule you created.
