Skip to Content
author's profile photo Former Member
Former Member

Binding Dynamically generated Checkboxes with static node attribute

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

adding checkboxes dynamically

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 06:32 AM

    Use

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

    or

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

    if the the attribute is inside a valuenode.

    Regards, Anilkumar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 01, 2007 at 07:02 AM

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

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.