Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

how to bind table using odata model..

$
0
0

hi experts i'm trying to bind table in eclipse. i have written the code in controller

 

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

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

  sap.ui.getCore().getControl("tab1").setModel(oModel);

 

nd binding rows in view as follows

 

      oTable.bindRows("/z02cust");

 

here /z02cust is mine enity set and path mentioned in service is mine service path..

service is not getting called when im testing it...

service is working fine in ecc.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>