Skip to Content
avatar image
Former Member

Read OData model entity set variables values directly

Hi,

Please suggest me the ways to read OData model entity set variables values directly.

Regards,

Koti Reddy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 03, 2015 at 02:21 PM

    you can read odata model values by using the ODataModel.read operation, or using JQuery AJAX get/post and specifying the url to the OData Service. Please read on the developer guide or the odata web site for proper syntax.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you for reply

      Used below syntax and succesful in calling my odata service.

      var serviceUrl = getUrl("/sap/opu/odata/sap/Z_SRV/");

      var modelFieldDisplay = new sap.ui.model.odata.ODataModel(serviceUrl, true);

      modelFieldDisplay.read("entitySet, null, null, false, function(response) {}

      Regards,

      Koti Reddy