Skip to Content
-1

Unable to retrieve data using ODATA Request

Jan 26 at 02:34 PM

76

avatar image
Former Member

Hallo,

I am trying my first hands on consuming ODATA Service in UI5 Development.

Below is my Code:

 var oMod2 = new sap.ui.model.odata.v2.ODataModel(surl,true);

My expection is that Bindings in the instance have to be filled ( Please see screenshot). But they are empty.

If I paste the URL directly in browser then I am able to get response.

odata-cons.jpg

odata-cons.jpg (272.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Ankit Maskara
Jan 27 at 05:47 PM
1
Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Jan 27 at 02:46 AM
1

you just have the wrong expectation

Share
10 |10000 characters needed characters left characters exceeded
Arjun Biswas Jan 29 at 08:13 AM
0

Hi Naga Satya Prasad Lingolu,

Bindings is a different concept altogether from OData. Please go through this link to understand what coding you have done. To use bindings, first you have to use and UI5 control such as a list or an table.

Regards,

Arjun Biswas

Share
10 |10000 characters needed characters left characters exceeded