on 05-29-2014 1:00 PM
Hi,
I have big troubles with calling oModel.getData() - I'm always getting null - but the view from which I'm getting the model shows the data, and also in chrome debugger I can see data inside oModel, this is screenshot from my application:
I've tried also debug SAP demo application for purchase approval and there is only one little difference:
sPath shows PurchaseOrderID for my code - which is first column in my collection, but SAP model shows /PurchaseOrder collection - the name of the collection.
Then If I call oModel.getData() - I got null.....my model is connected to GW service.
Many thanks Jiri
Did you try model.oData ? It'd list out the entire data in the model. getData() takes an argument sPath & anyhow getData() is deprecated. try model.getProperty(sPath);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dennis,
Check the api reference, JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel
Regards
Sakthivel
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.