Working with Lists

Documentation home 

 

See also:

How to use Dynamic Lists

How to use Static Lists

Working with Databases

 

Any form field in an Ebase form can be associated with a list by configuring the list properties of a field. Three types of list are supported:

 

 

 

 

Some aspects of behaviour are shared by all types of list (see below), but there are also some differences.

 

Both dynamic lists and static lists are stand-alone elements within the Ebase system and, once created, can be used by all fields in all forms.

 

 

Shared aspects of list behaviour

 

Each list entry can optionally contain both a displayed value and a returned value. This allows you to display a descriptive name while retaining a key value e.g. if displaying employee details, the department_id field might contain a numeric id but be displayed as the descriptive department name. With dynamic lists, the displayed and returned columns are configured when you map the list to a field.

 

When a field associated with a list is display only, the returned value is always displayed.

 

When a field associated with a list is editable (i.e. not display only), the list behaves differently depending on the display type of form field with which it is associated. When the display type supports multiple values, i.e. a dropdown list, radio buttons or checkboxes, the list operates in list mode and a list of values is presented to the user for selection; this is normally what is required. However, when a list is associated with other types of field, usually a text entry field, the list operates in validation mode, and will then validate the data entered by the user against the list. This mode is intended to be used for large lists where it is not practical to download all the list values.

 

When operating in validation mode, the list can be customised to control its behaviour when a not found condition occurs. The available options include:

 

 

When operating in list mode, the text 'Please Select' or its equivalent in other languages will normally appear at the top of each list. This text can be changed or suppressed by configuring the list properties for the field. If you check the Set Field with Single List Value checkbox on the form field properties, list tab, then this text will be removed.