cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 XML View Navigation using Router - Error

Former Member
0 Kudos

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-gatew...

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... 500 (Connection timed out: connect)

Plesae help.

Thanks,

Divya

Accepted Solutions (0)

Answers (1)

Answers (1)

RameshShrestha
Contributor
0 Kudos

Hi Divya,

Try working with this URL. It works to me.

"proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"

Also let me know if you found the solution with your issue. I was never able to solve that issue.

So I had to go with ajax call.

This 500 error is server sided error. So I could not understand.

Anyway in real time we will never face that issue because we will be working on same domain. There wont be cross origin issue.

Former Member
0 Kudos

Hi Ramesh,

I tried this url.


"proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/".


500 Error it is throwing.


How does the standard fiori app, navigate between different XML Views. Can you send me some docs for navigation between XML Views. 

Thanks,

Divya

RameshShrestha
Contributor
0 Kudos

Hi Divya,

Are you working behind some proxy server. Normally it happens as we work under the company proxy. For that we also need to make proxy setting in eclipse under

Windows --> Preferences --> General -->Network connection --> Make configuration here.

You can create sample appliction  from template in the WebIDE to check the working example of standard fiori applications.  This link will help you for that.

Former Member
0 Kudos

Hi Ramesh,

I already did that Northwind Example and i am able fetch data. I want to try XML View Navigation with Router.

Thanks,

Divya