Skip to Content
0
Jan 13, 2023 at 08:51 AM

add and remove row from sap.m.table

286 Views Last edit Jan 13, 2023 at 08:56 AM 2 rev

Hello All,

I'm using sap.m.table with mode delete.

I have two functions to add and remove row from table.

AddRow() function works fine if I add multiple rows in table.

The problem is if I delete particular row, it gets removed from table and immediately if I add new row, I get an error as duplicate Id.

duplicateid1.jpg

Add Row Function

addrow.jpg

Delete Row Function

deleterow.jpg

Please let me know if I'm doing anything wrong.

Regards,

Priyanka

Attachments

duplicateid1.jpg (106.7 kB)
addrow.jpg (69.2 kB)
deleterow.jpg (76.1 kB)