This topic is locked

Print with filter

8/12/2008 2:26:34 PM
PHPRunner General questions
G
gbhmayer1 author

I have a filtered LIST PAGE with this code:
if ($_REQUEST["a"]!="search" && $_REQUEST["a"]!="advsearch")
$strWhereClause = whereAdd($strWhereClause,"data=CURDATE()");
This code is in Before SQL query event .
I wrote the same code in the Print page in the Before SQL query event;
The print friendly page shows correct list;
When i filter by advsearch page, the print friendly page doesn't show the correct list (it shows the first filter)

J
Jane 8/13/2008

Try to use following code in the Print page: Before SQL query event:

if (@!$_SESSION["TableName_where"])

$strWhereClause = whereAdd($strWhereClause,"data=CURDATE()");