Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

help for binding text in sap.m.text

$
0
0

Hi,

I am trying to Bind text property of sap.m.Text but i am not successful.Please help me on this.

I am not getting any error in console same time not getting the output i.e names

 

var oModel = new sap.ui.model.json.JSONModel();

 

 

  var oData = [{name : "jagadeesh",surname : "biyyapu","count":1 },

              {name : "jagadeesh",surname : "biyyapu" ,"count":2}];

 

oModel.setData(oData);

 

var soid1 = new sap.m.Text().bindText("{name}");

 

soid1.setModel(oModel);

 

return soid1;


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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