Skip to Content
0
Former Member
Jun 09, 2008 at 05:38 PM

table multi selection

21 Views

hi

i have written this following code

if i have selected one single selection record from one table

and single selection from second table

populate the table else if the

user does multi selection for the first table and

single selection from the second table and click on button

is should throw as message

i have written the following code , its not throwing the error

when i select multiple rows

can any one help me .

if(wdContext.nodeIt_Car_Data().getLeadSelection()!=-1 && wdContext.nodeIt_Carv_Data().getLeadSelection()!=-1)

{

IWDWindowInfo winInfo=wdComponentAPI.getComponentInfo().findInWindows("SimpleMatchWin");

IWDWindow win=wdComponentAPI.getWindowManager().createModalWindow(winInfo);

//win.setTitle("Simple Match");

win.setWindowPosition(200,70);

win.show();

wdContext.currentContextElement().setSMatchWinInstance(win);

IWDMessageManager msg=wdComponentAPI.getMessageManager();

msg.reportMessage(IMessageCustomerComp.NO_MULTI_SELECTION,null,false);

}

// else if(wdContext.nodeIt_Car_Data().getLeadSelection()>0)

// {

// IWDMessageManager msg=wdComponentAPI.getMessageManager();

// msg.reportMessage(IMessageCustomerComp.NO_MULTI_SELECTION,null,false);

// }