cancel
Showing results for 
Search instead for 
Did you mean: 

check box Group

Former Member
0 Kudos

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 see only one check box with out any text.

Where am i going wrong?

Regards,

lavanya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use the following code.

String[] monthNames = new String []

{

"January", "February", "March", "April",

};

List Year = new ArrayList();

for (int i = 0; i < monthNames.length; ++i)

{

IPrivateWebdyn_tableView.IYearElement month = wdContext.createYearElement();

month.setAtt1(monthNames<i>);

Year.add(month);

}

wdContext.nodeYear().bind(Year);

Bind the Checkbox group element to the node attribute.

Thanks,

Madhavi A.

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

Former Member
0 Kudos

Hi,

A CheckBoxGroup cannot be bound against a value set of a DDIC type.

Refer this thread

Regards

Ayyapparaj