Form specification files / Form item attributes |
The ITEMS attribute defines a list of possible values that can be used by the form item.
ITEMS = { single-value-list | double-value-list }
( value [,...])
( ( value, label-value) [,...])
The list must be delimited by parentheses, and each element of the list can be a simple literal value or a pair of literal values delimited by parentheses.
This attribute is not used by the runtime system to validate the field, you must use the INCLUDE attribute to force the possible values.
ITEMS = ("Paris", "London", "New York")
ITEMS = ((1,"Paris"),(2,"London"),(3,"New York"))
COMBOBOX cb01 = FORMONLY.combobox01, ITEMS = ((1,"Paris"), (2,"London"),(3,"New York"));
In this example, the first value of a pair (1,2,3) defines the data values of the form field and the second value of a pair ("Paris", "London", "New York") defines the value to be displayed in the selection list.
RADIOGROUP rg01 = FORMONLY.radiogroup01, ITEMS = ((1,"Paris"), (2,"London"),(3,"New York"));
In this case, the first value of a pair (1,2,3) defines the data values of the form field and the second value of a pair ("Paris", "London", "New York") defines the value to be displayed as the radio button label.
ITEMS = ((1,%"item1"),(2,%"item2"),(3,%"item3"))
ITEMS = ((NULL,"Enter bug status"),(1,"Open"),(2,"Resolved"))
In this case, the behavior of the field depends from the item type used.