I would like to compare 2 field and coloring the backgroun of the 2nd field if the figure is not the same.
there is no error upon viewing, but the color also not appear even the both comparison field differ.
what I am doing wrong;
// Row Rendered event
function Row_Rendered() {
$jumlahPinjamanValue = $this->{'JUMLAH PINJAMAN'}->CurrentValue;
$amountApprovedValue = $this->{'AMOUNT_APPROVED'}->CurrentValue;
if ($jumlahPinjamanValue > $amountApprovedValue) {
$this->{'JUMLAH PINJAMAN'}->CellAttrs["style"] = "background-color: #FD7F7F; color: black;";
} elseif ($jumlahPinjamanValue < $amountApprovedValue) {
$this->{'JUMLAH PINJAMAN'}->CellAttrs["style"] = "background-color: #00FF00; color: black;";
$this->{'JUMLAH PINJAMAN'}->CellAttrs["style"] = "background-color: #FFFFFF; color: black;";
}
}