Skip to Content

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

Implementing OData-Service/Netweaver GW-Service into UI5-App

Hello guys!


After struggling with the setup of the Data-Service for my UI5-App, I started to code the User Interface of my app with mock-data (simply mock.json).

Today, I luckily could setup an accessable Odata-Service, but the jump from mock-data to real data is just too big for me now.

Can someone of you give me a guide or example how I replace my existing mockdata with my real data (in form of an url)?

Thanks in advance!

Here is my code so far:

var oModel = new sap.ui.model.json.JSONModel("model/mock.json");
oView.setModel(oModel);

with best regards

Chung

Former Member
replied

These are CORS related errors. you can check this blog Solving "Same Origin Policy" Issue in different ways or may want to deploy your UI5 application to ABAP server. check How to Deploy and Run SAPUI5 application on ABAP Server

Regards,

Chandra

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question