Populated from a Code-Table

If a FIELD has a target connection mapped to a property based on a code-table domain, a drop-down selection list will be displayed containing all code-table entries that are marked as "enabled". The entries will be sorted alphabetically according to their code descriptions. This can be overridden by setting the "sort order" of each entry. Consult the Cúram Server Developers Guide for full details on creating code-tables in a Cúram application.

When the selection list is displayed the initially selected item is evaluated as follows:

  1. The code value specified by the source connection of the field.
  2. The default code of the code-table if the FIELD element's USE_DEFAULT attribute is not set to false.
  3. The first item in the selection list, if no default code is defined or the default code is marked as "disabled".
  4. Blank, if the FIELD element's USE_DEFAULT attribute is set to false.

A drop-down selection list can also be displayed as a scrollable selection list where a number of entries are initially displayed instead of just one. To do this simply set the HEIGHT attribute of the FIELD element to a value greater than 1.