cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Check Box Group

Former Member
0 Kudos

Hi,

I am using check box group UI element.

I have binded a context attribute check which has context node check.

Context attribute is of type string.

What should i do if i want to check all the elements in check box group by default.

How should i retrieve the checked values from the group.

Kindly suggest.

Regards,

Prasanthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When i use the code to set the checbox checked by default, its showing error as selection cardinality does not allow multiple selections. my nodes cardinality is 1 to n. what could be the wrong.

Former Member
0 Kudos

Hi ,

set the node cardinality as 0...n,

and selection as 0..n

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

set the cardinality and selection of the node to 0..n

Former Member
0 Kudos

Hi,

On the node with which you have binded your checkbox group you need to write the method setSelected(). For Example there is a node color which has n attributes under it.

wdContext.nodeColor().setSelected(0, true);

this will set the 1st checkbox of the group as selected, you can put it under a for loop and get all the selected.


for(int i = 0; i < wdContext.nodeColor().size; i++)
{
    wdContext.nodeColor().setSelected(i, true);
}

Edited by: Aishwarya Sharma on Oct 13, 2008 12:56 PM

Former Member
0 Kudos

I dont find the property u r specifying

Former Member
0 Kudos

Hi,

refer the following threads,

Regards,

ramesh

Former Member
0 Kudos

you have to bind a boolean type context attribute to the checked property of the check box group

with regards

shanto aloor