cancel
Showing results for 
Search instead for 
Did you mean: 

Help in Check box group

Former Member
0 Kudos
53

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?

View Entire Topic
Former Member
0 Kudos

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

Former Member
0 Kudos

no, i have taken only one node attribute of type INTEREST.

INTEREST is simple type i have created which has 3 enumerations.

If i take three attributes of type string , how can i assign texts to the check box group?

Former Member
0 Kudos

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