This topic is locked

Search variables from toolbar

12/9/2008 5:15:21 AM
PHPRunner General questions
K
kenny_robb author

I have created an app and it has a search capability and an advanced search capability.
I have also created an audit event which write some infomration into an audit table. What I want to be able to do is

capture what the search actually is so my question is how do I reference the dropdown for the field and the condidtion and the field that actually contains the earch criteria so I can write them into my audit table.
Similarly how do I do the same thing for the advanced search.
Thanks in anticipation
Kenny

J
Jane 12/10/2008

Hi,
I suppose you need to write all search parameres to teh audit table.

Use $_REQUEST array and List page: Before process event for this purpose.

To print all values in the array use print_r function:

print_r($_REQUEST);

K
kenny_robb author 12/23/2008

Thanks Jane...this works great for the search from the List page.
I have however been trying to get the same thing working from the advanced search but neither of the events allow me to capture the variables that have been typed in.
Any ideas would be appreciated.
Thanks
Kenny

J
Jane 12/23/2008

Kenny,
have you printed all values in the $_REQUEST array?

K
kenny_robb author 12/23/2008

Yes and where it was very useful in the list page where it gave me the variables I was looking for it gives me nothing to do with the advanced search.

J
Jane 12/24/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.