8.2.3.8   CompareField

The condition CompareField makes it possible to compare the value of two data fields of the same data type and validate their values, see Figure 165.

By selecting a field in the first drop-down, Field 1, all fields of the same data type available for comparison with are visible in Field 2.

If the data field is an array, it is possible to define a specific indexed value in the array to be compared to a similarly specified index value in another field. This is supported for numerical entries of the indexed value. The indexed value may be defined manually, or by using the check boxes in the condition dialog.

Figure 165   Comparing Field Conditions

Field 1 contains the fields defined in the service, configured as a value representing a single value field or a value list field.

The Operator drop-down shows different options depending on the data type, see Figure 166.

Figure 166   Different Options in the Operator Drop-down

The different operators available are found in Table 81:

Table 81    Operator Options

Boolean

String

Numerical

= (equals)

Begins_with

= (equals)

 

Ends_with

> (greater than)

Contains

< (less than)

Exact_match

>= (greater than or equals)

Exact_match

<= (less than or equals)

By selecting the Compare to field checkbox, the user can choose to compare Field 1 to another defined field in Field 2. If Compare to field has not been selected, there is a parameter available where the desired value to compare with is entered, see Figure 167. The value entered is validated to be in range, and allowed input for the data type of the field in Field 1.

Figure 167   Input Value

In the case where the Field 1 is a value list field, an additional drop-down, an Index for field 1 menu, will appear. The drop-down will show the defined indexes of the value list. Field 2 can also contain either a single value field or a value list field. In this case an Index for field 2 menu will show the available indexes. Figure 168 shows an example of this.

Figure 168   Example of CompareField Condition When Field 1 and Field 2 Are Value List Fields.