This topic is locked
[SOLVED]

 Background colour

11/6/2013 10:39:07 AM
PHPRunner General questions
Graphix author

Hello

I wonder if someone could point me in the right direction, I am trying to change the colour of a cell depending on a value test,

I have read the manual and searched the forums im sure I have the code right it just does not seem to work,

I am using the latest build of PHPrunner Enterprise 7.0 (18858)

here is my code I am putting it in List Page: After record processed
if ($data["orderstatus"]=="OPEN")

$record["orderstatus_style"]='style="background:red"';

else

$record["orderstatus_style"]='style="background:green"';
what am I doing wrong

thank you

Kevan <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=21541&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 11/6/2013

I don't see anything wrong here. Make sure that field name is in fact is "orderstatus", case-sensitive. Make sure that field value is in fact "OPEN".
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

Graphix author 11/11/2013



I don't see anything wrong here. Make sure that field name is in fact is "orderstatus", case-sensitive. Make sure that field value is in fact "OPEN".
If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Issue resolved thank you

Sergey sent me an updated PHPRunner and told me to change the code too:
After updating PHPRunner modify your code this way:

--------------------------------------------------

if ($data["orderstatus"]=="OPEN")

$record["orderstatus_css"]="background:red";

else

$record["orderstatus_css"]="background:green";