Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: ODATA CRUD

$
0
0

And Yes I have Solved this problem by taking a very good rest before reading the documentation

 

Remember to do a forced clear cache especially in Chrome

The correct URL should be

http://server/Sentiments/services/contacts.xsodata/ContactsList('1')

 

code

 

var oModel = new sap.ui.model.odata.ODataModel("http:/mySecretIP/Sentiments/services/contacts.xsodata",false);

 

  oModel.remove("/ContactsList('1')", null, function(){

  alert("The Delete successful");

  },function(){

  alert("The Delete failed");});

 

Where contacts.xsodata is the name of .xsodata definition file

and /ContactsList is the alias name you gave to your database, view or datasource if you are using HANA

 

Hope this help me in the future or you presently


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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