cancel
Showing results for 
Search instead for 
Did you mean: 

error while sorting the model node table

Former Member
0 Kudos

hi

if(firstTime)

{

view.nowCreateAllCustomExtensionFields();

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

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

}

i have written the above code in domodifyview() {}

and tbl_car is the id of the my table. and the table is of type

model node .

wdContext.currentContextElement().getCarTableSorter().sort(wdEvent,wdContext.nodeIt_Car_Data());

created a sort action for the table , present in the table

properties and iam getting a error under sort() saying

method sort(iwdcustomevent,iwdnode,string) is of type

tablesorter and not applicable for

(wdcustomevent,iprivateview.nodename)

can any one help me ?

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

replace


if(firstTime)
{
view.nowCreateAllCustomExtensionFields();
IWDTable tab= (IWDTable)view.getElement("tbl_car");
wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),null));
}

by


if(firstTime)
{
view.nowCreateAllCustomExtensionFields();
IWDTable tab= (IWDTable)view.getElement("tbl_car");
wdContext.currentContextElement().setCarTableSorter(new TableSorter(tab,wdThis.wdGetCarTableSorterAction(),new HashTable()));
}

nikhil

Answers (2)

Answers (2)

Former Member
0 Kudos

bbbb

PradeepBondla
Active Contributor
0 Kudos

Hi,

for sorting model nodes..

regards,

pradeep