on 08-26-2010 12:48 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.