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.

bindingInfoSetColumnOrder 1

Parameters

sort_field

String: Name of a sorted column

header

StyleConstant.ROW_HEADER or
StyleConstant.COLUMN_HEADER

Returns

Integer

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:

bindingInfo.getColumnOrder             // unqualified
Crosstab1.bindingInfo.getColumnOrder   // qualified

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