A similar problem hapened to me some time ago, what I did was:
First declare a css class
.cellColored{background-color:#ff0000 !important}
Then go to your tabular form definition -> Region Definition -> Attributes
In Static ID add and id like this:
tab_form_id
Then go to Report Atributes in your tabular form definition and edit the column you want to paint,in the field 'Element Attributes' add this: class='classDelta'
Then run a javascript function to asign the cellColored class to the table cells that fit the criteria, something like this:
function paintCells(){
var tabForm = document.getElementById('tab_form_id');
var cells = tabForm.getElementsByTagName('td');
for(var i = 0; i < cells.length; i++){
if((cells[i].headers === 'DELTA') && (Number(cells[i].getElementsByClassName('classDelta')[0].value) < 0)){
cells[i].className = cells[i].className + ' cellColored';
}
}
}
Notice the cells[i].headers === 'DELTA'
line, this should be the name of the column as defined in the report.
EDIT
The above was for input type elements, for read only columns you need to use this function:
function paintCells(){
var tabForm = document.getElementById('tab_form_id');
var cells = tabForm.getElementsByTagName('td');
for(var i = 0; i < cells.length; i++){
if((cells[i].headers === 'DELTA') && (Number(cells[i].innerHTML) < 0)){
cells[i].className = cells[i].className + ' cellColored';
}
}
}
delta
where I need the color changes. – Mayhem MischiefDELTA
column should be inred color
– Mayhem Mischief