Class actuate.data.Sorter
Description
Specifies the conditions for sorting data as it is returned by a request or stored temporarily in a local ResultSet object. The sort arranges rows based on the value of a specified column.
Constructor
Syntax
Parameters
Boolean. True sets sorting to ascending. False sets sorting to descending.
Function summary
Table 4-14 lists actuate.data.Sorter functions.
Table 4-14 actuate.data.Sorter functionsactuate.data.Sorter.getColumnName
Syntax
Returns the name of the column to sort on.
Returns
Example
This example displays an alert box that contains the column name currently being sorted on.
actuate.data.Sorter.isAscending
Syntax
Returns true if the current sort order is ascending. Returns false if the current order is descending.
Returns
Example
This example checks if the current sort order is ascending. When the current sort order is descending, this code sets the order to ascending.
actuate.data.Sorter.setAscending
Syntax
Sets the sort order to ascending or descending.
Parameters
Boolean. True sets the sort order to ascending. False sets the sort order to descending.
Example
This example checks if the current sort order is descending. When the current sort order is ascending, this code sets the order to descending.
actuate.data.Sorter.setColumnName
Syntax
Sets the sorter to apply to the column specified by the columnName parameter.
Parameters
Example
This example makes the current sorter arrange the result set ascending by the Sales column.
(c) Copyright Actuate Corporation 2011 |
![]() |