on 09-23-2014 5:46 AM
Hello,
I have been trying to bind my SAPUI5 table using ODATA model. The ODATA Service I used is as follows:
var oModel = new sap.ui.model.odata.ODataModel("proxy/http/services.odata.org/OData/OData.svc", false);
I have tried everything only to find my table to be populated with "no data"
I have tested using Chrome, but there in the console log I found the following error.:
"The following problem occurred: HTTP request failed400,Bad Request,<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code /><m:message xml:lang="en-US">The MaxDataServiceVersion '2.0' is too low for the response. The lowest supported version is '3.0'."
Please help................
Hi Ranjit,
the OData Model in UI5 supports only OData 2.0 specification at the moment (see https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/91f11c116f4d1014b6dd926db0e91070.html).
You can access the OData 2.0 version of your service with following path information when you create your ODataModel instance: "proxy/http/services.odata.org/V2/OData/OData.svc/"
Best regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.