Skip to Content
-1

How to delete the selected checkbox record from sap.m.Table in SAPUI5?

Hi All,

I have a requirement, I want to delete the particular selected record from the table. I'm using sap.m.Table control. Anyone can you please assist me. can you please give any examples.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 07 at 07:54 AM

    Hi Mahesh,

    I'm using odata service. Can you please suggest me.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07 at 08:56 AM

    You can check the UI5 developer guide API reference.

    https://ui5.sap.com/#/api/sap.m.ListBase/getselecteditems/getSelectedItems

    Once you get the items, read the context data and call remove method of odata model.

    Try and let us know if you get any errors.. you can find many blogs question on this topic.

    BR

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 12 at 05:26 AM

    Hi,

    If you are using OData (but in JSon would be the same logic) delete the record in the model and then refresh the model.

    In OData model there is a Remove function : https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel/methods/remove

    Regards,

    Joseph

    Add comment
    10|10000 characters needed characters exceeded