Hi,
I am doing an OData update from sapui5 application. (Accessing gateway through SUP)
Here is a snippet of the code.
===================================
var oEntry = {};
//oEntry.PriceType = sap.ui.getCore().byId("dialog");
oEntry.Salesorg = "PEUS";
oEntry.UOM = sap.ui.getCore().byId("ID_Currency").getValue();
oEntry.Currency = sap.ui.getCore().byId("ID_UOM").getValue();
alert(oEntry.UOM + "--" + oEntry.Currency);
var oParams = {};
oParams.fnSuccess = function(){ alert("Update successful");};
oParams.fnError = function(){alert("Update failed");};
//oParams.bMerge = true;
debugger;
appC.oModel.update("/User_PrefsCollection('String_USerID')", oEntry, oParams);
====================================
We get an error as below
CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406Error while parsing an XML stream51FDB8017C1A0E6FE10000009E8D1039
Can you please me few pointers for how to go ahead?
Thanks
Krishna