CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Tip: Retaining search params on return to a page containing a search form.

Print topic Send  topic

Author Message
kmc
Posted: 04/05/2001, 7:37 PM

Tip :

Search/Grid/Edit pages do not retain the Search filter when you jump off to
a record page and then return to the Grid.
Here's how I manage to retain the filter....a default behaviour required by
my specifications.

Topic:
Retaining search params on exit and return to a page containing a search
form.
Build Grid/Edit via wizard.

On the Search/Grid page

1. In the SEARCH form, Properties/Input, place the SAME fields as are in the
Search form itself.
Make the variable names as anything, they don't seem to affect processing .
Use the same Type/DataType/Operation settings as the SEARCH form fields.
Do not mark these Input fields Transfer.

2. No need to do anything to the GridForm Properties Input.

On the RecordPage Properties Input

3. In addition to the linking URL Input placed there by CC, add the same
fields as are on the grid page's SEARCH form.
Name the variables the same names as the variables in the SearchGrid page
Grid Form Properties Inputs and mark them to Transfer.

THEN the process works. You can filter the recordset via the SEARCH form,
select a record from the filtered grid, work on the record and when you
return to the grid page, the same filtered record set is available.

Now all we need is a CC generated Clear Search button rather than adding our
own to each html Template.

In the html template, I add this line to the Search Form section..
td><input type="button" value="Clear Search"
onclick="location.href='projectsGrid.asp'"></td>

.......just before the CC generated line
<td align="right" colspan="2"><input type="submit"
value="Search"></td>

.... note the colspan change in the CC line to allow for the new button.





kmc
Posted: 04/05/2001, 8:33 PM

More...

....add to previous post - inadvertently snipped short....

Change the new button's " location href= ?????.asp " to your own
filename, that being a non visual file that just refreshes to the the
Search/Grid/Edit so it fires without the parameters we've been passing
around. I use one of these non-visual files for each Search/Edit/Grid ,
just subbing filenames in each one.

e.g. ClearAdmin.asp

<%
' redirect to admingrid2.asp so that search params are cleared
response.redirect("admingrid2.asp")
%>



   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.