Skip to main content
To let operators change the variant assigned to a document, the administrator creates and configures a service field.
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

  1. Click Add to open the correspondence-check dialog box.
  2. In Database field, specify the variant name.
  3. In Document field, specify the form field that must correspond to the variant name.
  4. 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.
When working with a document, the operator sees the ID of the variant the system assigned. To view all available variants and select a different one, the operator clicks the button, which opens a dialog box that lists the available variants and lets the operator create new ones.