Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table Sorting

Im unable to sort the table data

Procedure What i followed

1.i Created attribute called Sorter of java native Type package.TableSorter

2.i'm add following code in modifyview

//@@begin wdDoModifyView

if (firstTime) {

IWDTable table = (IWDTable) view.getElement("Table");

wdContext.currentContextElement().setTableSorter(new TableSorter(table, wdThis.wdGetSortAction(), null));

3.And also method onActionSort

onActionSort()

//@@begin onActionSort(ServerEvent)

wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeProducts());

//@@end

4. program code for the sort class under sac u2192 packages -packagename.TableSorter

5.in table properties Events-

onsort -Sort

but still i'm not able to sort the table data .....

after deploying i can able to see Up arrow and Down Arrow in table Header ........for sorting

when i'm selecting any arrows for sorting i'm not able to sort and also Arrow marks disappears for particular column when i selected

Former Member
Not what you were looking for? View more on this topic or Ask a question