When you run the demo, you will see that the first field has a drop down list. This is the default widget for enumerations and is known as the “selector” widget. When you click on one of the drop down lists, you will see the values of the enumerations defined in the XML. The widget is defined using fox:widget=”selector”.
If an element is mandatory, the default value of the selector is fox:key-missing=”Select One”. This can be over-ridden. If an element is optional, the default value of the selector is fox:key-null=”None”. This is can be over-ridden.
The above method is satisfactory for simple uses, but static and inflexible for sophisticated applications. Another way of displaying a drop down list is to use a Map Set.
This is the second field in the demo.
A map-set behaves like an Enumeration LOV, but is highly dynamic in nature.
When a map-set is associated with xs:element definition and set-out on screen:
Here the data value is a simple type (xs:string), but it can also be a complex collection.
Fox manages the map-set data structures automatically using a set of rules:
Other simple input widgets included in the demo are