This topic is locked

Events For Report Print Page

2/22/2013 12:02:43 PM
PHPRunner General questions
hfg author

I would like to put the following script (from tips and tricks) on the printer friendly page for a Report
global $strTableName;

if (isset($_SESSION[$strTableName.'_advsearch']))

{

$searchClauseObj = unserialize($_SESSION[$strTableName.'_advsearch']);

}
$fieldSearchData = $searchClauseObj->getSearchCtrlParams("FieldName");

$fieldSearchData = $searchClauseObj->_where[$strTableName."_srchFields"];
for($i=0; $i<count($fieldSearchData); $i++){

$fName = $fieldSearchData[$i]['fName'];

$val1 = $fieldSearchData[$i]['value1'];

$val2 = $fieldSearchData[$i]['value2'];

$srchCat = $fieldSearchData[$i]['opt'];

$srchNot = $fieldSearchData[$i]['not'];

echo "<B>Search: ".$fName." Option: ".$val1." ".$val2."</B>
";

}
The problem is I do not see a way to do this for the Report Printer Friendly (_print.php) page, there is no event section for it.

Sergey Kornilov admin 2/22/2013

At this moment we do not have events on report printer-friendly page. We'll add this functionality at some point.