Conditions checking other expression

QuestionsConditions checking other expression
Alejandro asked 8 years ago

Dear Developer and Community!

I have to database fields sugAL and udsAL

And I want sugAL have red color if the other field, udsAL = 0

Could you be so kind to assist me?

Thanks you!

$f = array();
$f["column"] = "sugAL";
$f["op"] = "=";
$f["value"] = "({udsAL}==0)"; // you can use placeholder of column name as value
$f["cellcss"] = "'font-weight':'bold', 'color':'red', 'background-color':'green'";
$f_conditions[] = $f;

2 Answers
Abu Ghufran answered 8 years ago

For this, some advance conditional formatting would be required.

Working demo: http://pastebin.com/J9BEEyTV (line 100)

Alejandro answered 8 years ago

Thanks you !

Your Answer

2 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?