vin7102 2/21/2009 | |
Code works great, |
ficcionista 4/7/2009 | |
Code works great, can you do the same with the font color instead of the background color?
|
vin7102 4/17/2009 | |
Ficc, |
R
|
run4sbc 4/22/2009 |
What if I wanted to change the color based on the data in the field.... |
admin 4/22/2009 | |
run4sbc, if ($data["Gender"]=="Male")
|
R
|
Ravengaard 5/7/2009 |
How would I go about this if I would like to use it to center the text in a column? if ($data["Kommentar"]=="")
global $record; |
T
|
thiethie17 10/24/2009 |
hello, |
T
|
thiethie17 10/24/2009 |
i make on error |
C
|
capp 1/2/2010 |
I'm not seeing the change take place, my code is as follows: |
vin7102 1/3/2010 | |
I'm not seeing the change take place, my code is as follows: global $record; if ($values["STATUS"]=="INSTALL") { $record["status_style"]='style="background:red"'; } ... also, for the status field I have it set as a lookup wizard with 'install' set as one of the options. thanks
global $record;
|
C
|
capp 1/3/2010 |
Cappa, Try this: global $record;
|
vin7102 1/4/2010 | |
Cappa, |
S
|
slodigia_lem 1/8/2010 |
Hi Vince, I've used what you suggested(on the After Record Updated Events Page), and it states: Undefined variable: data. The function for AfterEdit does not pass $data as a parameter. Which is why I've tried $values but to no avail. any other thoughts on this? Thanks.
|
F
|
forceDevClub member 5/18/2010 |
Hello Vince, I have tried several time to change the font color w/o sucess. I succeded to change the background color, the font style but no way to change the color. I am using php runner 5.1 with this code: if(($data['ABCCode'] == "A") or ($data['ABCCode'] == "A+")) { $row["rowstyle"]='style="font-style:italic;"'; <------- WORK PERFECT if($data['CurrentPosition'] <0) { //$row["rowstyle"]='style="background:blue"'; //$row['rowstyle']='style="color:red"'; <---------- NOT WORKING $row["rowstyle"]='style="font-weight:bold;font-style:italic;"'; <------- WORK PERFECT } // end if current < 0 } // end if A style Can be because I am not using the default color schema? Did someone had the same issue? Thanks Stefano
|
S
|
slodigia_lem 5/19/2010 |
Not working for me tried all modes. the background don't change.
|
greggk 7/27/2010 | |
I've tried many different ways of changing the background, and I keep getting an error "undefined variable: data" |
greggk 7/28/2010 | |
I think the code is correct, it was my version, I was still running the beta version, I updated to the latest version, and I believe it's working no <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51437&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> |
greggk 7/29/2010 | |
I have run into a new problem with the changing of the background. |
greggk 7/29/2010 | |
Never mind. It seemed like the beta version of 5.2 had some issues. I started from scratch, created the database from scratch with the latest release version, and it's working just like it's supposed to :-D |
D
|
Death 1/8/2011 |
DOESN'T WORK IN FIREFOX!!!!!!!!!!!!!!!! |
T
|
tedwilder 4/14/2011 |
_ |
ficcionista 5/17/2011 | |
Hello Vince, I have tried several time to change the font color w/o sucess. I succeded to change the background color, the font style but no way to change the color. I am using php runner 5.1 with this code: if(($data['ABCCode'] == "A") or ($data['ABCCode'] == "A+")) { $row["rowstyle"]='style="font-style:italic;"'; <------- WORK PERFECT if($data['CurrentPosition'] <0) { //$row["rowstyle"]='style="background:blue"'; //$row['rowstyle']='style="color:red"'; <---------- NOT WORKING $row["rowstyle"]='style="font-weight:bold;font-style:italic;"'; <------- WORK PERFECT } // end if current < 0 } // end if A style Can be because I am not using the default color schema? Did someone had the same issue? Thanks Stefano
if(($data['ABCCode'] == "A") or ($data['ABCCode'] == "A+"))
|
T
|
tedwilder 5/18/2011 |
_ |
U
|
unsearcheable 6/17/2011 |
I am placing code : global $record;
|
S
|
stec5345 8/7/2011 |
How about in the instance where the cell color would change to Red if the datetime or just date field is, lets say, greater than 30 days? |