cancel
Showing results for 
Search instead for 
Did you mean: 

Node - Changing an attribute of few elements

Former Member
0 Kudos

Dear Experts,

Greetings.

We have a table which has multiple editable rows...first colum is a check box.... and second column is "Group Name" If user selects few check boxes and presses " add group name button" a pop up comes and aks for group name...upon giving the group name....and clicking on save...the given group name should appear in all the selected rows.

We tried the following logic...but it didn't work out

For ( from 0 to nodesize)

{

If (select == true)

{

set lead selection to i.

element = getelement at (i);

gname = get the name from comp. controller.

element.setGname(gname).

}}

But it saids the value only for the first row.....regardless of the no of checks......but the loop is perfect...

it enters the IF codition for all the ticked check boxes.

Kindly prvide Ur suggestion

Sathya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try adding a node->invalidate() to your code.

PS. I think you don't have to change the lead selection in the code.