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