cancel
Showing results for 
Search instead for 
Did you mean: 

Binding Dynamically generated Checkboxes with static node attribute

Former Member
0 Kudos

Hi All

In my application I have to create checkboxes dynamically.

What i have done is -

When i create checkbox dynamically, i also create an attribute dynamically as per the thread

and bind the checked property of checkbox with the newly created attribute.

I have created an attribute under a node during design time .

Is there any way in which i can bind that attribute to the checkboxes?

Regards

Sonal Mangla

Accepted Solutions (0)

Answers (2)

Answers (2)

monalisa_biswal
Contributor
0 Kudos

U have to bind the checkbox's checked property to attribute info of the attribute.

<CheckboxReferenceVariable>.bindChecked(wdContext.node<node>().getNodeInfo().getAttribute(<attribute>));

Former Member
0 Kudos

Use

Checkbox.bindChecked("<<ValueAttributeName>>);

or

Checkbox.bindChecked("<<.ValueNode.ValueAttributeName>>);

if the the attribute is inside a valuenode.

Regards, Anilkumar

Former Member
0 Kudos

Hi Anil

Thanks for the prompt reply.

I did this also but the problem is that if i check one checkbox other checkboxes also gets checked.

Former Member
0 Kudos

Please post the exact context structure.

Armin