on 10-20-2010 8:59 PM
Hi,
I have four tables in my view. I created methods for Select_All and Deselect_All for one table ABC using this code and it works fine.
int elements = wdContext.nodeABC().size();
for(int x=elements-1; x>=0 ; x--)
{
wdContext.nodeOrgunits().setSelected(x,true); //false for Deselect
}
My question is, Do I have to write four Select_All methods for four tables? or is there a way of re-using same method for all other tables ? Please advise.
Thanks,
Dileep
Hi,
if you want to reuse the select all method for all the table so just add a parameter tableNode of type IWDNode in the method and wright the below code
int elements = tableNode.size();
for(int x=elements-1; x>=0 ; x--)
{
tableNode.setSelected(x,true); //false for Deselect
}
Call the method by passing all the table node one by one as a parameter.
Thanks & regards
Ravindra Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.