fields

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

Specifies the field of the data block to be filtered by the Calendar component. This is equivalent to selecting the field under the Data tab of the component ‘Properties’ dialog box.

calendarFields

Type

array

Example

Calendar1.query = 'Sales';
Calendar1.fields = ['Date'];

Either syntax below can be used in component script:

fields               // unqualified
Calendar1.fields    // qualified

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