formula

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

Specifies the aggregation method for the measure displayed in the Text component. This is equivalent to selecting a method from the ‘Aggregate’ menu under the Data tab of the component ‘Properties’ dialog box.

bindingInfoTextFormula

Example

Text1.query = 'Sales';
Text1.fields = ['Total'];
Text1.formula = StyleConstant.AVERAGE_FORMULA;

Either syntax below can be used in component script:

formula            // unqualified
Text1.formula      // qualified

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