This topic is locked
[SOLVED]

 Change row color

4/4/2012 11:58:23 AM
PHPRunner General questions
D
darcik author

Helo
I have highlight record with other color, eg. red.
I found a solution to this problem on the forum, but not working.

After refresh page can be seen red color as i want, but later all back to normal.
On List page: After record processed event

I tried several solutions.



if ( condition )

{

$row["rowstyle"]='style="color:red"';

$row["rowstyle"]='style="background:red"';

$record["xxx_style"].='style="background:yellow"';

}


Im using PHP Runner 6.0
Thanks in advance

T
Tempus_Erus 4/4/2012



Helo
I have highlight record with other color, eg. red.
I found a solution to this problem on the forum, but not working.

After refresh page can be seen red color as i want, but later all back to normal.
On List page: After record processed event

I tried several solutions.



if ( condition )

{

$row["rowstyle"]='style="color:red"';

$row["rowstyle"]='style="background:red"';

$record["xxx_style"].='style="background:yellow"';

}


Im using PHP Runner 6.0
Thanks in advance


Hi,
Try:
if ($data["Status"] == "Authorised")

{

$row["rowstyle"]='style="background:#FFFF11"';

}

elseif
($data["Status"] == "On Hold")

{

$row["rowstyle"]='style="background:#93FF68"';

}
Gues you could still apply the condition.............

D
darcik author 4/5/2012

Tnx for your reply, but I did all what you wrote. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=65443&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />
My condition is OK and all working fine but only during refresh page.



$today = date("Y-m-d");

$date_pay = $data["pay_date"];
if ( ($today > $date_pay) & ($data["paid"] == 0) )

{

$row["rowstyle"]='style="background:#FFFF11"';

}






When the page loaded




I looked at the page HTML code.

Background color is there but, imo, it is overwriten by table/row/cell class

<tr style="background:#FFFF11" id="gridRow8" class="yui-dt-odd runner-row style1 interlaced">


Same is if i tried to change color for text.
Any ideas? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=65443&image=4&table=forumreplies' class='bbc_emoticon' alt=';)' />

D
darcik author 4/11/2012
Sergey Kornilov admin 4/11/2012

darcik,
if you need any additional help with this 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.

D
darcik author 5/9/2012

I solved the problem myself.
Can't be checked:

Misc page --> Table specific settings -->
Now all is fine, but imo this is bug <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=66020&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />