Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Cannot read property 'ODataModel' of undefined when Using OData Model V2


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").bindRows({path: "/OPPS });

When I change the model to sap.ui.model.odata.ODataModel everything works fine...

Any ideas ?

Thank you !

Former Member
Not what you were looking for? View more on this topic or Ask a question