cancel
Showing results for 
Search instead for 
Did you mean: 

bind checked value of dynamically created checkboxes to node attruibutes

Former Member
0 Kudos

This is the scenario:

I need to Create n checkboxes(dynamically) based on the n elements present in a node. The values in the node are populated at runtime. i need to bind a boolean attribute in this node to the check boxes that are created.

Any help would be highly appreciated.

Regards,

Immanuel

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi,

Try the following:

1. Create a node with 0..n cardinality with the following structure

-


NodeElement

-


Column1

-


Column2

-


Column3

-


CheckBoxattribute(boolean)

2. In the view, right-click on the root container>Apply Template>Table

3. Select the NodeElement and set the CheckBoxAttribute UI as Checkbox

In this way u can create a Table with checkbox that are loaded as many elements in the Node at run-time

The checkbox value can be set / get using:

wdContext().nodeNodeElement().getNodeElementAt(<selectedRow>).get/setCheckBoxattribute(true/false);

Hope this helps you.

Regards,

Poojith MV

Former Member
0 Kudos

Hi poojith,

This is what i had initially done. Howevr in this approach i can have only one column of checkboxes. However my requirement is to arrange checkboxes into rows and columns, as there is a space constraint on the UI. hence i cannot use the table UI.

former_member214651
Active Contributor
0 Kudos

Hi,

If u need checkboxes as rows and columns, try using CheckboxbyGroup UI element.

Regards,

Poojith MV

Former Member
0 Kudos

Thanks a lot:)

Answers (0)