Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error While Adding 11th Record in table

Hi All,

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

Please guide.


Former Member
Former Member replied

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()[15].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


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question