on 02-07-2019 5:39 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
I'm using odata service. Can you please suggest me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.