on 01-28-2008 7:02 AM
hi all,
I have taken a checkbox group in my layout by binding the value attribute to that checkbox Group and i have taken a node for that attribute.and i have taken the node cardinality to 0...n
i am able to get those check boxes at runtime but iam unable to read checkboxes which are checked.
so can any body help me how to read values from checkbox group..............
Hi Mahesh,
Welcome to SDN,
You can get the checked check boxes using:
wdContext.node<YOUR NODE NAME>().isMultiSelected(int index) which will return true if the checkbox at index is selected. Node here is the node containing the attribute to which your checkbox is mapped.
Although there is a same problem posted in the forum already.
Hope this will solve your problem.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your node Name is test the following is the code
for (int x=0; x< wdContext.nodeTest().size(); x++)
{
if( wdContext.nodeTest().isMultiSelected(x) )
//Do what you want to do here
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
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.