query

  • Common Properties for properties shared with other components.

  • fields to specify the fields to display in the Selection List or Tree.

Specifies the data block to be used by the Selection Tree or Selection List component. The available data blocks appear at the top of the Toolbox panel in Visual Composer.

dataBlocks 2

Type

String

Example

SelectionList1.query = 'SalesByDate';
SelectionList1.fields = ['State'];

Either syntax below can be used in component script:

query                  // unqualified
SelectionList1.query     // qualified

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