cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Row Selection in Table.

Former Member
0 Kudos

I have table which is populated from backend data. I want to select the multiple rows and when I press the save it should do the processing for each row( get handle of each row).

I change the context node bound to table with carninality 0..n and selection 0..n and change the table selection property to multi.It does select the multiple row from UI but when I process them in the Save method I don't handle of each row (it process the same row as many times the different rows selected in UI) below is the code in the save method

for(int i=0;i<wdContext.nodeZemp_Details().size();i++)

{

if(wdContext.nodeZemp_Details().isSelected(i))

{

// Processing.

}

}

Any suggestion would be helpful!

Thanks,

Samir

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hello Samir,

try following


int leadSelection = wdContext.nodeZemp_Details().getLeadSelection();
for(int i=0;i<wdContext.nodeZemp_Details().size();i++)
{
if( leadSelection == i || wdContext.nodeZemp_Details.isMultiSelected( i ) {
// Processing.
}
}

Best regards, Maksim Rashchynski.

Answers (2)

Answers (2)

Former Member
0 Kudos

I got this working, I was trying to get the currentContext node which was not working I changed to getNodeElement(i) which works.

Thanks for help!

Former Member
0 Kudos

Hi Samir Kumar,

Check out these links..

If you need more info let me know.

Regards,

Karthick