bindingInfo.getTopN(field, header)
Returns the number of row or column groups in the ranking specified by bindingInfo.setTopN(field, header, number) or set by the ‘Rank’ option in the Crosstab Editor.

Parameters
- field
-
String: Name of a column to rank
- header
-
StyleConstant.ROW_HEADERorStyleConstant.COLUMN_HEADER
Example
var numGroups = Crosstab1.bindingInfo.getTopN('Category',StyleConstant.ROW_HEADER);
Text1.text = 'Displaying top ' + numGroups + ' groups.'
|
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. |