on 09-11-2006 7:49 PM
Hi
I am Created checkbox group called "Gender".Automatically there are 3 checkboxes created with this with labels as "Lebel1","Label2","Label3".Now i want to change "Label1","Label2","Label3" as "Male","Femele","NotSpecified".At design time how to change these labels.I tried to change the "texts" property.can anybody help me?
Thanks
Prasad
At designtime you cannot set these texts because they are taken from context node elements which are only available at runtime.
The "texts" property should be bound to a context attribute A inside a node of cardinality 0:N. At runtime, this node must be populated with 3 node elements and the values of A in these elements should be "Male", "Female", "Not Specified".
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
I am trying to create a Checkbox group. I created a value attribute and binded it to simple datatype containg list of items in enumeration. Then I binded the Checkbox group "texts" property with the value attribute.
In the layout wizard all items are visible but at runtime none of them is visible.
Cardinality of node containing the value arrtibute is 0..n. I have checked it for 1..n also.
Please tell me what could be the possible reason behind it.
thanks in advance!
hi,
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.
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
User | Count |
---|---|
86 | |
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.