This topic is locked

Adding a default search criteria to print

2/5/2010 1:59:43 PM
PHPRunner General questions
D
Dale author

Ver 5.1
I have successfully added a default search clause to the list pages when displayed. In the Before Sql Query event.

If $_REQUEST["a"] != search etc for advanced search and showall

then I use $strWhereClause to add a where clause.
This works perfectly on the list page, but when I print the page, I loose the added search criteria.
How would I be able to apply this to the Before SQL Query on the print page.

There is no request information in the print url.

Can this be done, what am I missing.

J
Jane 2/9/2010

Dale,
you can save search parameters in the session variable in the List page: Before SQL query event and then use this session variable on the print page.

D
Dale author 2/9/2010

Thanks Jane,

I'll give it a go.

As always, greatfuly appreciated.