Skip to Content

After clicking save only CRUD operations has to perform? how?

Nov 01, 2017 at 09:20 PM


avatar image

onRowsDeleteButton: function(oEvent) {


var oTable = this.getView().byId("invoiceList");

var aSelectedIndices = oTable.getSelectedItems();

var oModel = oTable.getModel();

var aBatchtoDelete = [];

for (var i = 0; i < aSelectedIndices.length; i++) { var oContext = aSelectedIndices[i].getBindingContext().getPath(); oModel.remove(oContext, 'DELETE');



10 |10000 characters needed characters left characters exceeded


Please provide more details. It’s not clear.

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Arjun Biswas Nov 02, 2017 at 04:08 AM

I did'nt understand what is your requirement exactly. From what I understand, you can create an submit button in the view, an clicking, in the controller, call the remove function in the OData model to delete the table row.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks Arjun for reply.

When I delete table row it is deleting in oData service table directly. This should happen when I click on submit / save button. I am not able to build that lagic in my function.

Thank you very much for your answers.


Welcome Sudhakara Reddy B,

What you can do is delete only your row first i.e. donot call your OData CURD methods there. Call the CURD methods on clicking of the submit button. You can view the foll. links for better understanding of the coding part :

Hope this helps,