This topic is locked

Reset search criteria

1/14/2009 10:59:11 AM
PHPRunner General questions
vin7102 author

Hi,
I want search page to reset once a search is complete and the search page is closed.

Possible??

Thanks

J
Jane 1/15/2009

Vince,
please explain what does "search page is closed" mean?

vin7102 author 1/15/2009

Hi Jane,
When the user does an advanced search in a report, the results are shown based on the search criteria, but if the user then goes to other pages in the application and then returns to view that report page, the advanced search selections made earlier are still present and the report still shows the filtered data. I was wondering if it were possible to reset the advanced search entries right after that report page is viewed so that if the user comes back to that report, all the data is shown once again unfiltered as if he/she had reset the search page.

J
Jane 1/16/2009

Vince,
search parameters are cleared when you open report page again (for example when you click on the report link in the menu).

There is only one exception. If you use Back button in browser all search parameters are saved.

vin7102 author 1/16/2009

Hi Jane,
I figured that would happen but in my case it is not. However, all my reports are accessed through custom redirect buttons that I've created right on the list pages.

for example, in my "Inventory" list page I have the following code on the List page : BeforeShowList

$xt->assign("showreport1_attrs","onclick=\"window.location.href='pull_inventory_Report_report.php?a=return'\"");


I then edited the html list page and added a button to call the report.. Which works great! (It just keeps from cluttering up the page with a bunch of menu tabs)

but the search parameters are not cleared unless I clear them manually myself or log out and back in. Maybe its because I'm using the custom buttons.