Hi All,
I want to implement sorting in my UI table. I followed the following steps:
1. Created a context attribute of "TableSorter" type (used TableSorter.java)
2. Created an Action "Sort" and have written the below code in its event
wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.<node>);
3. In wdDoModifyView have written the below code
if(firstTime){
IWDTable table = (IWDTable)view.getElement(<tablename>);
wdContext.currentContextElement().setTableSorter(new TableSorter
(table, wdThis.wdGetSortAction(), null));
}
4. Assigned "Sort" action (created in step 2) to the Sort Event of the table.
After deploying the code, I can see the sort icons in the column headers but after clicking on that, its not sorting the table, also the icons are lost after their click.
Not sure what I missed in this. Please help me out.
Thanks in advance.