Implementing OData-Service/Netweaver GW-Service into UI5-App
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");|
with best regards
Chandrashekhar Mahajan 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