Hi, I am trying to implement a CUD app for a while now and have chosen to go the oDATA route
Reading data is has been an easy one
While I though create update and delete would ply the same road, I guess its another ball game,
How can you assist with
var oModel = new sap.ui.model.odata.ODataModel("http://myServer/Sentiments/services/contacts.xsodata");
oModel.remove('/ContactsList(1)', null, function(){
alert("Delete successful");
},function(){
alert("Delete failed");});
I get a failed Alert, Imagine that, What COuld i be doing wrong, permissions, security, headers...etc
This is all I have in my contacts.xsodata file service namespace "sap.hana.contact.service" { "SYSTEM"."BMBFRIENDS" as "ContactsList"; } Below is the example I want to test with as shown in the API reference
DELETE http://server/Sentiments/services/contacts.xsodata/ContactsList(1) 400 (Bad Request)d
Thanks for your help