This topic is locked

Hide A Row On Print Page

4/15/2013 12:20:09 PM
PHPRunner General questions
DonnaLynn author

PHPRunner 6.1

I'm trying to hide a row on a tables print page. I named the row name "comment" and I check it.
in Print page: After record processed:

if ($row["name"]="comment")

{

echo $row=["name"];

//$row["grid_row"]=false;

}
comment is echoed back... so I know it's finding it. But when I try to make the row to not display using either $row or record etc. I can't seem to make it disappear.
I had to create a view of a master and detail. I've have where $value ="" for each comment not to repeat, yet what I really want to do is make the whole row not display at all.
Any direction would be helpful.

Sergey Kornilov admin 4/17/2013

First of all, if you want to hide the row - you need to use BeforeRecordProcess event.
http://xlinesoft.com/phprunner/docs61/before_record_processed.htm
If you need to access field value from that event use $data["FieldName"]

if ($data["name"]="comment")

return false;

else

return true;