I have this below class where i am cloning rows with values from previous rows to current one. I am able to clone the rows but at every clone i am getting the 1st row values.
I am not getting the values of the row which i clicked. I am afraid i am not able to get the row index.
Class -
public void testclone(){
for (Integer idx=0; idx<sdf; idx++)
{
Test_Detail__c a = wrappers[0].werc.clone(false, true, false, false);
wrappers.add(new TestWrapper(nextIdent++,a));
}
}
Test_Detail__c a = wrappers[idx].testserv.clone(false, true, false, false);
?