Skip to Content
avatar image
-1
Former Member

Unable to retrieve data using ODATA Request

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 27 at 05:47 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 27 at 02:46 AM

    you just have the wrong expectation

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 29 at 08:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded