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.

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:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |