Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Gateway Response to SAPUI5 with ODataModel Create() method.

$
0
0

I am trying to use SAPUI5 OdataModel Create() method to insert row in sap using Gateway.

 

oModel.create(

'/EmployeeDetails', oEntry, null,

function(oData,response){
alert("SuccessFull");
},

function()
alert("Error Connecting to the SAP Server");});     

}

 

"CreateEntity" is the method that is getting triggered in SAP through Gateway. This methos returns two export paramters. One of the export parameter I manually created E_RETURN which says whether data insertion was successfull or failed.

 

After the Gateway call is done I am using created method fnSuccess to show the response that we getting from Gateway Server. But I am not sure how to encode the server response in success event on the ui5. I did lot of google every is explaining about retrving the data but no good example for data create and update. I need experts help to decode the Server response.

 

 

Gateway.png


Viewing all articles
Browse latest Browse all 1657

Trending Articles



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