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

 Change grid date using a Button

Print topic Send  topic

Author Message
kkabbara

Posts: 14
Posted: 01/12/2004, 9:35 AM

Greetings,

Does anyone know of a way to use a Button to make a grid change it's date.

For example, if I have a button that says "Show today's date", I would like the grid to show only today's records. Or "Show a week a month" etc.

Thanks,
Karim
View profile  Send private message
Edd


Posts: 547
Posted: 01/12/2004, 1:59 PM

Karim,

Can you be more specific - A lot of the functionality can be hadled by putting a search grid at the top of the screen with a date range.

Alternatively. Use Javascript to refresh the pages. If you need some dynamic dates for the date ranges - add some hidden fields on the page, i.e. Start of Month, End Of Month, etc. to assist your javascript.
_________________
Accepting and instigating change are life's challenges.

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


Posts: 5971
Posted: 01/12/2004, 7:45 PM

Consider using links or image links that look like buttons.
Then in the "Href Source" property of the link create a Link Parameter:
Source Type = Expression
Parameter source = Date()
Parameter name = s_date

Then modify your Grid to filter/show only those records that match the date, just like the users would be searching for a specific date.
This is just an example of how to add new parameters to the Links and use functions there as well. You may need to calculate your dates in some way, or create a function that calculates your dates. You can also use multiple Link Parameters, for example one with the starting date and another with the ending date.
_________________
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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