CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Filter grid result by other means.

Print topic Send  topic

Author Message
charles

Posts: 59
Posted: 11/02/2006, 12:20 AM

Hi folks,
I am trying to filter a grid without using URL.
Specifically i am trying to filter by a specific value in a search form.
For example, when a page loads, i want to present the user with a search form that contains a listbox of periods,the user selects the period and the grid is filtered by the value of the period selected in the listbox of the search form.
I guess this can be done by selecting form as parameter type.
But am not sure of how to configure the remaining properties of the form to accomplish this.
Can anybody please help?
Regards,
Charles
View profile  Send private message
Edd


Posts: 547
Posted: 11/02/2006, 3:57 PM

Charles,
Is this like a list of dates and you only want to select a month / Year and the only thing you want in your list box is text months such as May, 2007?

Edd


_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
charles

Posts: 59
Posted: 11/02/2006, 5:47 PM

Thanks Edd for your quick response.
it is more like having a grid form with various transactions on diffrent dates that falls within a given month/period.The idea is for the user to select the period and based on the period selected the grid displays all transactions that falls within that period.
This i do easily if the parameter is sent via URL.
In this instance, i will like the grid to be filtered by the value of the selected listbox in the search form instead of the value of the querystring.
Rergards,
Charles
View profile  Send private message
Edd


Posts: 547
Posted: 11/02/2006, 7:06 PM

Charles the problem is that to filter ther grid it will still need to to a server call (even if you used Ajax) and you would need to pass a parameter some way.

I suppose you could do it through cookies and Javascript - I have never done this but I have seen examples (a long time ago) that show how to save Cookies using Javascript then re-retrieve a page based upon those cookies.

Google would be your starting point as usual.

Edd

_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
peterr


Posts: 5971
Posted: 11/03/2006, 12:09 AM

There is probably no practical difference between using URL parameters (GET method) or form values (POST method) when searching. A grid would use form values or URL parameters in exactly the same way, and both types of parameters would need to be submitted in the same way as well (except that using exclusively form values may not allow you to validate the values entered into the search form).
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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.