Skip to Content

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

Table Sorting


iam performing table sorting on the model node

and first table its working fine , but when iam trying to sort

the second table its throwing null pointer exception

in the action method .




IWDTable tab= (IWDTable)view.getElement("tbl_car");

IWDTable tabCarv=(IWDTable)view.getElement("tbl_carv");

wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),null));

wdContext.currentContextElement().setCarvTableSorter(new TableSorter(tab,wdThis.wdGetGetTableSorterAction(),null));


i have written the above code and then created

two action methods

first action method


second action method


and two context variable of type TableSorter

is throwing NULL pointer exception for the second table action when iam trying to sort.

can any one help me out ?

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