This topic is locked

Is there a conditional formating feature in PHPR 5?

1/3/2009 6:03:31 PM
PHPRunner General questions
hichem author

Is it possible and if yes how can I implement conditional formating for the list view?

Example: if a value in my query result for a specific field exceeds a pre-defined threshold I would like to highlight that row in Red or show a border in a different colour for that row or apply any other formating. How can this be done?

Can this be down for the result of the search as well?
many thanks

T
thesofa 1/4/2009

search the forum for this, it has come up many times

hichem author 1/6/2009

search the forum for this, it has come up many times


The examples didn't work for me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36546&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

I use PHPRunner
I would like to highlight in my list as well as search page the records that have a field (Duration) that exceeds a certain value
I use the event on List page : Before display

if ("Duration") > 1 then

row("shadeclass") = "style='background:red'"

endif
What's wrong with this one?

How do I refer to the database field ("Duration")?
many thanks for helping

hichem author 1/6/2009



The examples didn't work for me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36547&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

I use PHPRunner
I would like to highlight in my list as well as search page the records that have a field (Duration) that exceeds a certain value
I use the event on List page : Before display

if ("Duration") > 1 then

row("shadeclass") = "style='background:red'"

endif
What's wrong with this one?

How do I refer to the database field ("Duration")?
many thanks for helping


I tried BeforeMoveNextList(&$data,&$row,$col)

if $data("Duration") > 1 then

row("shadeclass") = "style='background:red'"

endif
I don't know how to refer to the column name or rather teh value of the column/field "Duration" correctly?? anyone pls? thanks

T
thesofa 1/7/2009

$data["Duration"]