Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Populate table columns dynamically using oData or SQL

$
0
0

        $ .getJSON(

  url,

  function(data) {

     oModel.setData({

  path : data.d.results

  });

 

    

       oTable.addColumn(new sap.ui.table.Column({

        label: new sap.ui.commons.Label({text: ""}),

  template: new sap.ui.commons.TextView().bindProperty("text", ""),

 

  width: "200px"

  }));

  oTable.setModel(oModel);

            oTable.bindRows("/path");

 

});


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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