Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

How I can get my data from oData or oModel ?

$
0
0

Hi,

 

I try to get a data from my table like this:

 

var aData = [     {id: "0", country: "France", city: "Paris"},     {id: "1", country: "Russia", city: "Moscow"},     {id: "2", country: "Estonia", city: "Tallinn"}
];
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData({modelData: aData});

How I can get value from aData (value of country or city) ?


Viewing all articles
Browse latest Browse all 3441

Trending Articles



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