fields

  • Common Properties for properties shared with other components.

  • query to specify the data block from which to draw the fields.

Specifies the field (Selection List) or fields (Selection Tree) of the data block to be displayed by the Selection component. This is equivalent to selecting fields under the Data tab of the component ‘Properties’ dialog box.

SelectionListFields

Type

Array

Examples

Selection List
SelectionList1.query = 'SalesByDate';
SelectionList1.fields = ['State'];
Selection Tree
SelectionTree1.query = 'SalesByDate';
SelectionTree1.fields = ['State','Company'];

Either syntax below can be used in component script:

fields                    // unqualified
SelectionTree1.fields     // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.