Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: how to bind table using odata model..

$
0
0

Hello Adarsh,

 

code as fallows for binding the table

 

 

var service = "sap/opu/odata/sap/z02_cust_srv/";

var oModel = new sap.ui.model.odata.ODataModel("service", false);

sap.ui.getCore().setModel(oModel); 

 

  var oTable = new sap.ui.getCore().byId("tab1");

 

  oTable.setModel(oModel);

 

  oTable.bindRows("/z02cust");

 

It may be helpful for you, If it is not work please share error report.

 

Thanks

padma


Viewing all articles
Browse latest Browse all 8124

Trending Articles