on 02-03-2015 2:45 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
Hope this helps:
var oEntry = {};
oEntry.Price = "599$";
oModel.update('/Products(1)', oEntry, null, function(){
alert("Update successful");
},function(){
alert("Update failed");});
Look at this - OData Write Support - What's New in SAPUI5 - SAP Library
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
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.