bindingInfo.getFormula(measure)

Returns the aggregation formula for one of the measures specified by bindingInfo.measureFields or set as the aggregation method for a measure in the Crosstab Editor.

bindingInfoSetFormula 1

Parameters

measure

String: Name of a measure

Return

String

Name of aggregation method

Example

if(Crosstab1.bindingInfo.getFormula('Quantity Purchased')=='Sum'){
  Crosstab2.bindingInfo.setFormula('Quantity Purchased',StyleConstant.SUM_FORMULA);
}

Either syntax below can be used in component script:

bindingInfo.getFormula             // unqualified
Crosstab1.bindingInfo.getFormula   // qualified

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