on 11-30-2006 3:30 PM
How do you determine which column was clicked for sorting by the user?
The "onSort" event has a parameter named "col" containing at runtime the ID of the table column that was clicked.
To use it inside the action handler, you have to do a parameter mapping. In older releases this has to be done programmatically in method wdDoModifyView() like this:
if (firstTime)
{
IWDTable myTable = (IWDTable) view.getElement("ID-of-Table");
myTable.mappingOfOnSort().addSourceMapping
(
IWDTable.IWDOnSort.COL, /* event parameter name constant */
"columnID" /* action parameter name */
);
}
If there is no interface IWDOnSort in your release, use "col" as event parameter name.
The action must have a parameter "columnID" od type "string".
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Before creating the table arrange the sort is possible i Think so.
thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.