jcf
Posts: 16
|
Posted: 05/30/2008, 11:19 AM |
|
Hi
I have a problem, I am trying to colour text in a browse based on the status or priority field.
This is normally not a problem but it seems to be when the browse is inside a tab on a tab view.
Normally you would do the code below in the Before Show Row but is doesen't work when it is on a tab?
function Tasks_Priority_BeforeShow(& $sender) {
global $Tasks;
if ($Tasks->Priority->GetValue() == "High") {
$Tasks->Priority->SetValue("<font color=RED>".$Tasks->Priority->GetValue()."</font>");
} else if ($Tasks->Priority->GetValue() == "Lowest") {
$Tasks->Priority->SetValue("<font color=GREEN>".$Tasks->Priority->GetValue()."</font>");
}
}
Does any have a work around or another way of writing this $Tasks->Priority->SetValue("<font color=GREEN>".$Tasks->Priority->GetValue()."</font>"); so it works in the tab?
Thanks for any helpl
JCF
_________________
Jon Fletcher
www.arrowbyte.com
|
|
|
wkempees
Posts: 1679
|
Posted: 06/03/2008, 5:36 AM |
|
This Forum is for posting Tips & Solution, not questions.
Please repost in correct forum, f.i. CodeCahrgeStudio PHP
Thank you.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
|