This topic is locked
[SOLVED]

 Changing color of total

4/19/2010 9:26:25 AM
PHPRunner General questions
J
jdu001 author

Hello,
PHP-runner 5.2, build 5242
I have an master table MANAGER related to EMP on the tables screen.
I have list screen for the MANAGER-table with a link to the EMP details listscreen.
MANAGER John
Name... Age

Jack... 45

Frank.. 65

...

----------

average 55
The average (age) is set on the fields order and totals screen.
I like to change the average age to red if the average age is greter then 50.
On the visual editor screen, I changed the properties of the average age field to:

view as: custom
if ($value>50)

$color="red";

else

$color="black";

$value="<font color='$color'>$value</font>"
like the example in the help-file.

The color only changes when I refresh the screen, not when I change or add a new employeee.
How can I change the color (withe javascrip?) when I change or add a new employee using the inline add/edit feature.
Greetings,
Jo van Duin

J
Jane 4/23/2010

Jo,
unfortunately there is no easy way to update color of the field after inline add/edit.

As workaround you can refresh whole page after inline add/edit action.