cancel
Showing results for 
Search instead for 
Did you mean: 

chech box selection

Former Member
0 Kudos

hi all,

i have a check box, on selection of which other check boxes should be checked and unchecked.

The check boxes which are to be checked and unchecked are in the same node.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

get the value of the checkbox and set the value to other contextAttribute (i.e)

wdContext.current<NodelElement>().setAttr1( wdContext.current<NodeName>Element().getAttr2())

Regards, ANilkumar

Former Member
0 Kudos

thanks for your suggestion,

But i have 72 check boxes and a check box named "Select All", when i check this check box all the 72 check boxes should be checked and vice-versa, can i do this

using some loop.

Former Member
0 Kudos

Hi,

Consider you have valueattribute "selectAll" of type boolean .

You valueNode "CheckBox" with valueattributes for 72 checkboxes.(cardinality 1:1)

ex :Check1

Check2 and so on and bind it to respective checkboxes

then do the following

for(int i=0;i<72;i++)

{

wdContext.currentCheckBoxElement().setAttributeValue("Check"+i,wdContext.currentCotextElement().getSelectAll());

}

Regards, Anilkumar

roberto_tagliento
Active Contributor
0 Kudos


for(i=0;i<wdContext.node<NodeCHECKS>().size();i++){

wdContext.current<NodeCHECKS>Element().setAttr1(       
      wdContext.current<NodeName>Element().getAttr2()
)

}

roberto_tagliento
Active Contributor
0 Kudos

oooo 72 checks attribute in one node!!

Answers (1)

Answers (1)

monalisa_biswal
Contributor
0 Kudos

Instead of taking 72 attributes in one node You could have taken one attribute in a node with cardinality 0..n and binded the node to a table.