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

enhance table before display

$
0
0

hello everyone,

I'm trying to enhance cell colors depending on the content of the cell.

 

I'm consuming oData service from SAP backend.

this is the table:

var oTable = new sap.ui.table.Table({  id: "OverviewTable",  width : "100%",  rowHeight : 20,  title : "",
 });
oTable.addColumn(new sap.ui.table.Column({  label : new sap.ui.commons.Label({text : "Группа компаний""}),
  template : new sap.ui.commons.TextView().bindProperty("text","SENDER_NUM"),   sortProperty : "SENDER_NUM",   filterProperty : "SENDER_NUM",  }));
oTable.bindRows("/DASHBOARDSet");
return oTable;

So, I'm passing values to table by .bindRows(); and field values: SENDER_NUM

The thing is that I'm trying to change cell color depending what value the SENDER_NUM has.

Where can I fetch the results?

As onInit, onBeforeRendering, and even after return.oTable there are no values yet in the table.

Where can I fetch the filled in value in the table?

Thank you.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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