bindingInfo.measureFields

query to specify the data block from which the Crosstab displays data.

Specifies the data block fields to be used as measures. This is equivalent to adding fields into the ‘Aggregates’ region of the Crosstab Editor.

crosstab editor Aggregates region with measure fields assigned

Type

Array

Example

Crosstab1.query = 'Sales';
Crosstab1.bindingInfo.rowFields = ['Category','Name'];
Crosstab1.bindingInfo.colFields = ['Region','State'];
Crosstab1.bindingInfo.measureFields = ['Total','Quantity Purchased'];

crosstab showing Total and Quantity Purchased measures with row and column fields

Either syntax below can be used in component script:

bindingInfo.measureFields             // unqualified
Crosstab1.bindingInfo.measureFields   // qualified

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