Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Get data from a sapui5 table......Urgent

$
0
0

That's what I figured, you print it inline, and the asynchronous request most likely hasn't returned any data when you try printing the model data

 

Use the following:

 

var oModel = new sap.ui.model.odata.ODataModel("http://services.odata.org/V3/Northwind/Northwind.svc/"); 

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

 

oModel.attachRequestCompleted(function() {

      console.log(sap.ui.getCore().getModel().getProperty("/Customers"));

})


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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