Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to delete sap.m.Table item?

$
0
0

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.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>