on 11-06-2008 9:11 PM
Hi,
I have checkbox by group UI elemnet.
I have binded the text property of the checkbox by group to a context attribute and its type property is selected from a simple type.
In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
how to get the label names, using simple types. i,m able to get it using code.
how to get it by simpletype???
thanks, suresh
hi,
in case of check boxes, it will not work with
a simple type
write code similar to this according to your requirement
in wdDoModifyVIew();
if(firstTime){
String[] names = {"one","two","three"};
for(int i=0;i<names.length;i++){
IPrivateCheckView.IXElement nelem =wdContext.nodeX().createXElement();
wdContext.nodeX().addElement(nelem);
nelem.setName(names);
}
}
where X is a node ,
Name is attribute under node X
of type string
bind the texts property of the check box group to the Node X
Regards,
Satya.
Edited by: Satya on Nov 7, 2008 8:34 AM
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.
Hi,
You need to have an attribute inside a node for checkbox group. You are using an attribute directly thus you can see onlny one value. As you said that you can get it correctly using code and that is the way it is normally used. I will let you know if there is a workaround to use it directly from the simpletype.
Regards,
Murtuza
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.