on 01-30-2006 1:53 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.