Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Display sap.m.table cells font color dynamically based on other cells/columns comparison.


I saw few examples to color the table cells using formatter function definition in columnlistitem.Please suggest / recommend sample code to read model data directly to validate and display colors of tablecells based on validations as column names also dynamic.


Koti Reddy

Former Member
Former Member replied

HI Koti

Can it be like this

        for (i = 0; i < items.length; i++) {
              var item = items[i];
              var obj = item.getBindingContext().getObject();
              var $item = $(item.$().find('td')[0]);
              if (obj.status === "Not Well") {
              } else {


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question