Skip to Content
avatar image
Former Member

Unable to get data from odata service in sap ui5 in Orion Personal webide

Dear All,

I am working on Orion Personal webide and connected onPremise system by saving credentials in file at C:\SAPWebIDE\eclipse\config_master\service.destinations\destinations

I am getting this error when sap ui5 application is calling gateway URL to access the data.

Please let me know with suggestion.

Thanks & Regards,

Praveen

My issue is very much similar to this issue.

I am using below code -

var sURI = "https://GWName.com/sap/opu/odata/sap/Y_SRV";
var oDataModel = new sap.ui.model.odata.ODataModel(sURI);
sap.ui.getCore().setModel(oDataModel);
//"https://GWName.com/sap/opu/odata/sap/Y_SRV/YResults/";
//var oDataModel = new sap.ui.model.odata.ODataModel(sURI,true,'username','password');
capture.jpg (19.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 07 at 04:07 PM

    Hi,

    We have connected on-premise system with cloud platform.

    Thanks & Regards,

    Praveen

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2017 at 01:21 PM

    What i did to solve a similar issue is adding this to the code, its not with gateway but with HANA XS.

    _oModel.setHeaders({
    "Access-Control-Allow-Origin": "*"
    });
    Add comment
    10|10000 characters needed characters exceeded