Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2812

Re: Bind oData response from backend to UI5 Textfield

$
0
0

Hi,

 

Able to bind with bindItems thanks.

 

But issue i am facing is with the template. After performing operations on the odata response i store the dates in an array. As its an array it stores the dates in different indexes hence how can i give a fixed property to bind to a template and bind it to table.

 

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

    var tableid = sap.ui.getCore().byId("aa");

    json2.setData(abc);

    tableid.setModel(json2);

var oTemplate = new sap.m.ColumnListItem(   

  {cells: [    

          new sap.m.Text({text : json2.oData})

            ]   

  }); 

 

 

tableid.bindItems("/",  oTemplate);

 

again binding individual elements is possible with [0] else it binds the entire array in each row of table as in screenshot.

 

Many Thanks for all your help

ow screenshotarray.jpg


Viewing all articles
Browse latest Browse all 2812

Trending Articles



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