cancel
Showing results for 
Search instead for 
Did you mean: 

RE:retrieving data from checkbox group

Former Member
0 Kudos

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..............

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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