cancel
Showing results for 
Search instead for 
Did you mean: 

Reg. checkbox by group and simple types

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Why inside wdDoModifyView()?

Armin

Former Member
0 Kudos

Hi,

for checkboxgroup you cann't use the simple type.

follow the below thread.

to populate checkbox follow this thread,

Regards,

ramesh

Former Member
0 Kudos

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