Skip to Content
0
Aug 12, 2015 at 06:15 PM

Table binding in XML Views

420 Views

Dear Team,

I don't have backend system for accessing the Odata Service. I am using Service that is given by SAP.

http://services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/

I have created one XML view. How we can bind the odata service Product list into XML View and controller.

In the component.js file i have initiated the Odata service. How we can bind the entity set to Table .

var url = "http://services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/";

var oModel = new sap.ui.model.odata.ODataModel(url,true);

oView.setModel(oModel);

Code for the Component.js.

Kindly help me how we can do binding in table .

Thanks

Nishant