on 08-24-2015 12:43 PM
Hi Guys,
I have created a SAPUI5 application using sap.m library with a Javascript view.
I have build a Table (structure) using the sap.m,Table library. Refer the below snap.
However, I am not able to bind the OData Gateway service to this table.
Under the controller.js file I tried to bind the data using the OData/JSON Model with following code snippet.
Also, apart from this. While I tried to add 2 more columns then no output is getting displayed.
Can anyone please guide me on this.
Thanks,
Mistry Wasim
Hi Guys,
By mistake, I had place the code in wrong section. Its working fine now.
Thanks for the responses though.
Thanks,
Mistry Wasim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mistry,
Can you print the JSON model data and give us sample of 2 records? It will be easy to resolve, if model structure is available
JSON.stringify(sap.ui.getCore().getModel().getData());
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
bindItems(path,....),
check here- http://scn.sap.com/thread/3542984
else you can use bindAggregation - Binding oData into table(sap.m.table) in SAPUI5 | SCN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.