Skip to Content
0
Former Member
Feb 13, 2009 at 01:53 PM

Node - Changing an attribute of few elements

11 Views

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