bindingInfo.showColumnTotal
Specifies whether a trailing column containing totals should be displayed. This is equivalent to setting ‘Column Total’ in the Crosstab Editor.

Example
Crosstab1.query = 'Sales';
Crosstab1.bindingInfo.rowFields = ['Category','Name'];
Crosstab1.bindingInfo.colFields = ['Region','State'];
Crosstab1.bindingInfo.measureFields = ['Total','Quantity Purchased'];
Crosstab1.bindingInfo.setFormula('Total',StyleConstant.SUM_FORMULA);
Crosstab1.bindingInfo.setFormula('Quantity Purchased',StyleConstant.SUM_FORMULA);
Crosstab1.bindingInfo.showColumnTotal = true;

|
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. |