bindingInfo.getColumnOrder(sort_field, header)
Returns the sorting order for a row or column header (as a Style Constant integer) specified by bindingInfo.setColumnOrder(sort_field, header, method, [measure]) or set by the ‘Sort’ option in the Crosstab Editor.

Parameters
- sort_field
-
String: Name of a sorted column
- header
-
StyleConstant.ROW_HEADERor
StyleConstant.COLUMN_HEADER
Example
if(Crosstab1.bindingInfo.getColumnOrder('Category',StyleConstant.ROW_HEADER)==StyleConstant.SORT_VALUE_DESC) {
Crosstab2.bindingInfo.setColumnOrder('Category',StyleConstant.ROW_HEADER,StyleConstant.SORT_VALUE_DESC,'Sum(Total)');
}
|
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. |