on 05-21-2008 2:03 PM
Hi,
I have created a check box Group
texts = Mydata.Interest.Interests
Mydata is a node , Interests is of type Simple type Interests.
It has 3 enumerations.
But when i run, I am able to only one check box with out any text.
Where am i wrong?
hi,
But when i run, I am able to only one check box because
The number of checkboxes equals the number of node elements.
and A CheckBoxGroup cannot be bound against a value set of a Simple Value type.
Regards
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if u r using string type attribute then use this code in init method
here abc is attribute name and ad is node name.
for (int i = 0; i < 5; ++i)
{
IPrivateCreateXmlView.IAdElement ele = wdContext.nodeAd().createAdElement();
wdContext.nodeAd().addElement(ele);
ele.setAbc("Name " + i);
}
Regards
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi you cannot use symple type to name the check boxes.
create a node(Say CheckBox) of cardinality 0..N
with a context variable(Say CheckValue) of type String. Bind this attribute(CheckValue) to "texts" property of CheckBoxGroup.
Now, to add 5 checkboxes from code, use the following code
IPrivate<View>.ICheckBoxNode lNode=wdContext.nodeCheckBox();
IPrivate<View>.ICheckBoxElement lEl;
for(int i=0;i<5;i++)
{
lEl=lNode.createCheckBoxElement();
lNode.addElement(lEl);
lEl.setCheckValue("Text"(i1));
}
xxxxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on May 21, 2008 7:58 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First of all check if the node attached to cbg is set to cardinality 1..1.
If not, check if there is an element in this node (at runtime) and if it's the lead selection.
Did you bind the attribute to the "Texts" property of the cbg?
Is there any chance that you change the attribute value at runtime?
Aviad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.