Can anyone please let me know the syntax for the DELETE batch operation using SAP UI5. I have done the insert batch operation. Its working fine. But delete batch operation is not working.
My INSERT Batch operation syntax
update_entry.YEAR = year;
update_entry.COUNTRY_ID = country;
update_entry.CUSTOMER = name;
var batch_single = insert_model.createBatchOperation('/customers',"POST",update_entry);
batch_changes.push(batch_single) ;
insert_model.addBatchChangeOperations(batch_changes);
insert_model.submitBatch(function() {
update_success == "successful" ;}, function() {
update_success == "unsuccessful";}, true);
insert_model.refresh();
I have modified the above code for the DELETE batch operation as below
var batch_single = insert_model.createBatchOperation('/customers',"DELETE",update_entry);
But the above syntax is not working. Could anyone help me with the issue.
Thanks Sathish