Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

The Data Service Request is required to be conditional. Try using the \"If-Match\" header.

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>