on 10-13-2008 11:40 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
set the cardinality and selection of the node to 0..n
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont find the property u r specifying
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.
you have to bind a boolean type context attribute to the checked property of the check box group
with regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.