Hi Mahesh,
I'm using odata service. Can you please suggest me.
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
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