Hi Experts,
I'm trying to delete a record/row from an entity set as shown below, But getting an error "Data Service Request is required to be conditional ". Can anyone provide your insights if familiar with this error? PFA Screenshot.
var oModel= new sap.ui.model.odata.v2.ODataModel(surl);
oModel.remove("EntitySet('xxxx'), {
success:function()
{
console.log("success")
},
error:function()
{
console.log("Error deleting");
}
});
Thanks & Regards,
Abhi
Did you find a solution to this? I am facing same issue. I am sure it must be something to do with Odata settings at gateway end but not sure what.
Add a comment