bindingInfo.showRowTotal

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

bindingInfoshowRowTotal

Type

Boolean

true: show row total
false: hide row 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.showRowTotal = true;

bindingInfoshowRowTotal2

Either syntax below can be used in component script:

bindingInfo.showRowTotal             // unqualified
Crosstab1.bindingInfo.showRowTotal   // qualified

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