Hi all,
I create a table "ToDoTable" at runtime with data source "DynamicNode".
In Context I add new value Attribute of java native type TableSorter.class
Then I try to sort it with this code:
- in wdDoModify view:
IWDTable table = (IWDTable) view.getElement("ToDoTable"); wdContext().currentContextElement().setTableSort(
new TableSorter(table, wdThis.wdGetSortTodoAction(), null));
- in SortTodoAction
IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("DynamicNode",IWDNode.LEAD_SELECTION);
wdContext().currentContextElement().getTableSort().sort(wdEvent,node);
Now column headers are "active" but on click nothing change...
I try this code with a table created at design time and all it's ok
What's the problem?
Thank you very much!
Andrea