Error While Adding 11th Record in table
I have a form in which there are 10 fields in which i am taking input from user and as soon as user click on add button i am adding all those 10 field values in the table which have associated columns for each field. As soon as i add 11th time application shows me following error.
Cannot read property 'getCells' of undefined
I dont understand why it is happening
i have made follwing changes in my code and my problem get resolved
var lastLineNo = aData[trCount-1]["POSNR"];
lineItemNo = oIntegerFormat.parse(lastLineNo.toString()) + 10;
//lineItemNo = oIntegerFormat.parse(oTable2.getRows()[trCount-1].getCells().getValue()) + 10;
The commented out line was giving error on getCells() method i dont understand why, i just removed this line and played in the data array and my problem get resolved.
Thanks Robin for your support your discussion give me new ways and thanks to all others too who tried to resolve my issue