hi
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 .
if(firstTime)
{
view.nowCreateAllCustomExtensionFields();
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
wdContext.currentContextElement().getCarTableSorter().sort(wdEvent,wdContext.nodeIt_Car_Data())
second action method
wdContext.currentContextElement().getCarTableSorter().sort(wdEvent,wdContext.nodeIt_Carv_Data());
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 ?