on 10-19-2015 1:33 PM
Hi,
I am trying to use Odata Model V2, and I get the cannot read property 'ODataModel' of undefined, when I instantiate the model:
var oppModel = new sap.ui.model.odata.v2.ODataModel(".../services/opportunityList.xsodata", true);
sap.ui.getCore().byId("oppTable").setModel(oppModel);
sap.ui.getCore().byId("oppTable").bindRows({path: "/OPPS });
When I change the model to sap.ui.model.odata.ODataModel everything works fine...
Any ideas ?
Thank you !
sapui5 version? v2 is from 1.28
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shady,
I think the sapui5 version you are using will be too low. Can you check in the console of your browser if the statement 'sap.ui.model.odata.v2.ODataModel' doesn't return undefined? You can check the version of the sapui5 library by running 'sap.ui.version' in the console.
Best regards,
Maarten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.