Skip to Content
0
Former Member
Apr 01, 2014 at 09:50 AM

How to delete sap.m.Table item?

1304 Views

Hi guys,

I have a sap.m.Table on screen, and I have defined the delete handler:

delete: oController.deleteRule,

Here's my deletion handler method:

        deleteRule: function(evt){
                evt.getSource().removeItem(evt.getParameter("listItem"));
        },

It works for removing the item from table, but when I add new entry to the model of table,

I got "adding element with duplicate id" error.

So I don't know what's the correct way to remove one row from sap.m.Table.

Please help advice.

Regards,

Aaron.