#LIST#

Description

This reserved word checks the values of a ComboBox. It works with either the full text entries in the combo box or the metadata translation (XLAT) values of the entries.

Use #LIST# with a Set_Value action to check one or more values and then set an item in a drop-down list box, list the items separated by a vertical pipe (|) and place brackets ([]) around the item that you want to select. If the value in the field is not the same as the value in brackets, PTF logs an error and sets the value in the field to the value in brackets.

Example

This example shows the use of the #LIST# reserved word:

In this example, the first step verifies the existence of items in the list. The second step verifies that the items exist and verifies that Individual is selected.

Type Action Recognition Parameters Value

ComboBox

Set_Value

Name=PA_CALC_CALC_TYPE

#LIST#Individual|Pre-Defined Group|Pre-Defined List

ComboBox

Set_Value

Name=PA_CALC_CALC_TYPE

#LIST#[Individual]|Pre-Defined Group|Pre-Defined List

This example is similar to the previous example, but it refers to the entries by the metadata translation (XLAT) values rather than the text that actually appears in the combo box:

Type Action Recognition Parameters Value

ComboBox

Set_Value

Name=PA_CALC_CALC_TYPE

#LIST#I|G|L

ComboBox

Set_Value

Name=PA_CALC_CALC_TYPE

#LIST#[I]|G|L