on 04-04-2016 1:53 PM
Hi experts,
Am in a process to create & run simple UI5 application from SAP WEB IDE [ i.e. version 160324 ] to move forward I have completed below activities,
Before starting am trying to explain all my process setup, here there you have 3 areas to configure
var domainString = "document.domain";
var domainstring = "*.com";
'Access-Control-Allow-Origin: *.local.com';
'Access-Control-Allow-Headers: X-KEY';
var sServiceUrl = "https://xxxx.xx.xxx:443/sap/opu/odata/sap/Zxxxxx_xxxxx_SRV/";
var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl,true);
var oJsonModel = new sap.ui.model.json.JSONModel();
var gServiceUser = "xxxx";
var gServicePassword = "xxxx123";
oModel.read("/ZPARCEL_OwnerSet('3000001190')", gServiceUser, gServicePassword ,true,function(oData,repsonse){
oJsonModel.setData(oData);
var empbp = oData.BpId;
MessageToast.show("Employee Name is" + empbp);
}):
As per my above code I was expecting to get empbp, but am getting below error, respected experts please provide your input.
In advance appreciate your help and time.
Regards,
Sid.
Hi experts,
issue got resolved .... by adding below function
function (data, response)
{header_xcsrf_token = response.headers['x-csrf-token'];
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.