Highlighted

Facing problem While deleting rows and adding rows

Avatar

Guest

25-02-2009

Hi,



In my form i have pass values to table rows by selecting values from Dropdown list.



i have taken 3 hidden obj and passing the dropdown values to hidden objects and then from hidden objects to table rows.



h1,h2,h2 are hidden obj

EMPNO,EMPNAME, DESIGNATION are drop downlist



i have add button with the following code



if(form1.P1.ItemSet.EMPNO.rawValue != null){

form1.P1.ItemSet.instanceManager.addInstance();

form1.P1.execInitialize();

var dynamicArray = form1.P1.resolveNode("ItemSet[" + arrayIncri + "]");

dynamicArray .EMPNO.rawValue = form1.P1.hidden.h1.rawValue;

dynamicArray .EMPNAME.rawValue = form1.P1.hidden.h2.rawValue;

dynamicArray .DESIGNATION.rawValue = form1.P1.hidden.h3.rawValue;

arrayIncri++;



form1.P1.SF1.EmpID.rawValue = null;

form1.P1.SF1.EmpName.rawValue = null;

form1.P1.SF1.Designation.rawValue = null;

}



My delete button code is



_ItemSet.removeInstance(this.parent.index);

form1.P1.execInitialize();



My problem is adding is happening while click and deleting is happening to the perticular row but once i delete paricular row then again if i want to add new row then it is taking null values . and agian if i click add then the values are passing to the next row

means i am getting null row if i do add funtionality after delete funtionality....



Please help me out in this..



Subba reddy