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

Re: Populating Table in JS View from Json file using MVC

$
0
0

hi dhiraj,

 

 

first create a JSON model instance and then set the data to the model.

 

// create JSON model instance
var oModel = new sap.ui.model.json.JSONModel();
// set the data for the model
oModel.setData(aData);

and then bind to your table using this.

 

oTable.setModel(oModel);
oTable.bindRows("/");

 

 

regards

 

Indrajith


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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