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.