Quantcast
Channel: SCN : All Content - SAP Fiori
Viewing all articles
Browse latest Browse all 1807

How to bind Json file in view.xml

$
0
0

Hi,

 

I created custom application with component.js file and JSON file( I saved in application only)

 

in Component.js file:(I tried in veiw.controller.js file init{} method also)

var oModel = new sap.ui.model.json.JSONModel();
oModel.setJSON(this.<Json filename>);

this.getView().setModel(oModel, "JsonModel");

in .view.xml

<List id="lableID" items="{JsonModel>/<jsonfield>}">

 

But the data is not binding..?


Viewing all articles
Browse latest Browse all 1807

Trending Articles



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