I’ve a code that shows a tableview…and in each row have a delete button. the last line of the table is always an insert new field.
when i press the delete button from a row. it will call my delete code that will delete that row.
if i go to the last line of my table, the one i can insert a new field, it will create a new field on that position and will create a new row for adding another new field.
if i delete 2, 3 , 4 or any other row. and then insert a new field (that will force a refresh table) it will work.
but if i delete row 1, then insert a new field it will give me an error refreshing the table using “tableV:reloadData()”
the code to insert and to delete is 100% equal independent of the row so i guess this is an internal problem since the error only points to the line that i’m refreshing the table.
i can’t put code here since my tableview is 400 lines long with calls from one file to another and using internal code to create images. etc that noone would understand. but the problem is just that, if i delete any row than the first my code will work 100% if i remove first row, if i try to insert any row after that will give me an error.
i noticed also that corona changed the way corona remove rows…i updated my code to use the new standard: “tableView:deleteRows({id}” still with exact same error.
i’m using last version of corona 2017.3038
regards,
carlos.