Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 XML View Navigation using Router - Error

Hi All,

I am trying to Navigate between two XML Views.

I am referring the blog.

scn.sap.com/community/developer-center/front-end/blog/2014/02/20/how-to-guide-sapui5-netweaver-gateway-codejam-antwerp

When i do an Inspect Element in Chrome, I am getting this error

  1. OPTIONS https://sapes1.sapdevcenter.com:8080/sap/opu/odata/sap/zgwsample_srv/$metadata  datajs.js:17
    1. o.defaultHttpClient.requestdatajs.js:17
    2. E2datajs.js:17
    3. o.requestdatajs.js:17
    4. (anonymous function)ODataMetadata.js:6
    5. O._loadMetadataODataMetadata.js:6
    6. sap.ui.base.EventProvider.extend.constructorODataMetadata.js:6
    7. M.extend.constructorODataModel.js:6
    8. osap-ui-core.js:135
    9. (anonymous function)

I am not able to see any records.

I used

var  oModel = new sap.ui.model.odata.ODataModel("https://sapes1.sapdevcenter.com:8080/sap/opu/odata/sap/zgwsample_srv/");

sap.ui.getCore().setModel(oModel);

If i use url as "proxy/https/sapes1.sapdevcenter.com:8080/sap/opu/odata/sap/zgwsample_srv/"

Then it uses the url like

http://localhost:59788/CodeJamApplication/proxy/https/sapes1.sapdevcenter.com:8080/sap/opu/odata/sap/zgwsample_srv/$metadata 500 (Connection timed out: connect)

Plesae help.

Thanks,

Divya

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question