This topic is locked

Hide zero values

12/8/2007 8:21:07 PM
PHPRunner General questions
O
osluk author

I cannot find this - sure I have seen it somewhere.
I want to display some some values as % AND not display a figure if the value is zero.


I would rather colums with zero value displayed blank rather than 0%.
Thanks Chris

Alexey admin 12/10/2007

Chris,
use Custom view type for your field.

Here is the sample code:

if($value)

$value=$value."%";

else

$value="";

O
osluk author 12/12/2007

Hi I had figured I needed to enter 0.85 to get 85% previously.

Now these show as follows.
My Server column RT does not show up but zero values are hidden - 5 format incorrect.


Demo Account column RT does show but zero vaules show and % incorrect


There are differences between the demo server and my server.
Cheers Chris

Alexey admin 12/13/2007

Chris,
contact support team directly at support@xlinesoft.com

Send your problem description there.