This topic is locked

Hide Fields when Empty in view report

6/3/2009 6:09:14 PM
PHPRunner General questions
G
garivera author

Could anyone suggest how to hide fields when they are empty when viewing a report. I was trying to use Report Page: Before Display
if ($values["Field"]!="") $xt->assign("Field_fieldblock",true);

else $xt->assign("Field_fieldblock",false);
but since it does not support $values, it does not work.
Does anyone have a solution to this?
G

J
Jane 6/4/2009

Hi,
unfortunately there is no easy way to hide fields/columns on the report page.

This task requires a lot of custom coding in the generated files.

R
Rigmantas 6/5/2009

Hi,

In visual editor view as setings Custom:
if (!empty($value["Value"]))

$value = "Name: " . $value;
"Name:" can not be: $value = $value;

Rimantas