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

Re: can send an error message in the update method odata my service?

$
0
0

Hi Axel,

 

For error function there is a parameter oError can you check in debugging what information does it return. Use below code:

 

var oEntry = {};

oEntry.Price = "599$";

oModel.update('/Products(1)', oEntry, null, function(){

  alert("Update successful");

  },function(oError){

console.log(oError);

});

 

Look at the update method here - SAPUI5 SDK - Demo Kit


Viewing all articles
Browse latest Browse all 8950

Trending Articles