cancel
Showing results for 
Search instead for 
Did you mean: 

Read OData model entity set variables values directly

Former Member
0 Kudos

Hi,

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

Regards,

Koti Reddy

Accepted Solutions (1)

Accepted Solutions (1)

SergioG_TX
Active Contributor

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.

Former Member
0 Kudos

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

Answers (0)