The complex table search field edit type displays the records of a complex table in a searchable list. This field edit type displays a field with an ellipses button. When the ellipses button is clicked, the searchable list screen is displayed. By default users may search the records of the complex table on any defined top-level index for a string field. Alternately, a single search index may be specified as a part of the screen field’s definition. This field edit type also supports scanner functionality to select a record.
When scanner functionality is enabled, the scanned value will be used to search the complex table on the selected search index. Only those records that match will be listed and the user may make a selection from this filtered list.
For detail screen fields defined with an edit type of complex table search, there are two lists of items shown in the properties view of the Editor. The first is the Search Dialog Indexes tab. Listed in this tab will be one item for each top-level index defined in the complex table the screen field is displaying. Each item contains a check box which, when selected, will display that index to the user as one that can be searched on. Those indexes not checked in this list will not be displayed to the user.
The complex table search dialog indexes display in alphabetical order and defaults to the first one in the search list. You can select an alternative index to be the default. For example, if you have indexes for description, equipment, location, and point, and select point as the default index, then the complex table search dialog displays the point index in the search field. Similar to the table index, the complex table drop-down allows you to choose a table index from existing indexes.
For detail screen fields defined with an edit type of complex table search, there are two lists of items shown in the Properties view of the Editor. The second is the Search Dialog Fields tab. Listed in this tab will be one item for each field defined in the complex table being displayed by the screen field. Each item contains a check box which, when selected, will display that field to the user in the list of records. Fields that are not selected will not be shown to the user, unless all fields are not selected, in which case all fields of the complex table are displayed as columns in the list.
This dialog also allows the developer to specify the order in which columns should be displayed in the list control of the search dialog. For the selected fields, a position value is assigned and can be adjusted by moving the field up or down in the list.