on 09-15-2014 3:18 PM
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
you will have to create a odata model , and then the bindings.
var oModel = new sap.ui.model.odata.ODataModel("<your service name>");
check the help link for some details,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it didnt worked out unfortunately.
Maybe some extra details:
Tried it, but in chrome I encounter the same problem as in the beginning (
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.