The following form incorporates fields containing lists defined by both XML Object syntax and XPRESS.
<Form> <Field name=’department’> <Display class=’Select’> <Property name=’allowedValues’> <List> <String>Engineering</String> <String>Marketing</String> <String>Sales</String> </List> </Property> </Display> </Field> <Field name=’department2’> <Display class=’Select’> <Property name=’allowedValues’> <expression> <list> <s>Engineering</s> <s>Marketing</s> <s>Sales</s> </list> </expression> </Property> </Display> </Field> </Form>
The allowedValues list in the department field is defined as a static list built with <List>. No matter how many times this form is used, only one list is created. In contrast, the allowedValues list in the department2 field is defined with a <list> expression. A new list is created every time this form is used.