Skip to Content

Remove row from table

Hi expert,

I'm new to UI5. My requirement is if I click on delete that particular record will delete from table.

So I written my logic according to that,but I struck at one point. I got the particular objects in array which I need to delete but when I use remove keyword the data is not deleting from table. I  Please check the following code

I used the mode to display delete icon in table

In view:

<Table id="table" items="{/items}" mode="Delete" delete="odelete">


odelete : function(oEvent) {

  var context = oEvent.getParameter("listItem")


  var obj = this.getView().byId("table").getModel()


  var item = obj.items[context];




Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 25, 2014 at 06:25 AM

    HI Ashok

    Here is an simple example


    Add comment
    10|10000 characters needed characters exceeded

    • Hi Dennis,

      I got the answer. thanks for your reply. Instead of remove I used splice to remove data and after that I refreshed my model.


      data.splice(index, 1);