bindingInfo.showColumnTotal

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

bindingInfoshowColumnTotal

Type

Boolean

true: show column total
false: hide column total

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;

bindingInfoshowColumnTotal2

Either syntax below can be used in component script:

bindingInfo.showColumnTotal             // unqualified
Crosstab1.bindingInfo.showColumnTotal   // qualified

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