Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing full articles (6178 articles)
Browse article index
↧

To search for a data in JSONModel

$
0
0

Hi experts,

 

 

var oModel = new sap.ui.model.json.JSONModel({

businessData : [

{Country :"Canada",revenue:410.87,profit:-141.25, population:34789000},

{Country :"China",revenue:338.29,profit:133.82, population:1339724852},

{Country :"France",revenue:487.66,profit:348.76, population:65350000},

{Country :"Germany",revenue:470.23,profit:217.29, population:81799600},

{Country :"India",revenue:170.93,profit:117.00, population:1210193422},

{Country :"United States",revenue:905.08,profit:609.16, population:313490000}

]

});

 

 

From this Json Model can i take revenue of a country if i pass country name. i would like to do a search operation on this json model and get a data based on the key.how can i do it?

 

Thanks..

↧

Viewing full articles (6178 articles)
Browse article index

Latest Images

Trending Articles



Latest Images