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

 Do not suppress search grid

Print topic Send  topic

Author Message
cobom


Posts: 55
Posted: 07/14/2004, 7:41 PM

My problem is kind of an opposite of suppressing a search grid described at gotodon.com:

http://www.gotodon.com/ccbth/features/ViewArticle.asp?ArticleID=20

I have a record page that populates the user ID at login in - so that they can enter data related to them. I have a search grid that also prepopulates the user ID and the Datenow() fields. The resultant search was designed to tally a hours field (thanks Don) so that as they enter records a total is displayed at the bottom of the search grid.

All this works fine - except the user - after login - needs to hit search at least once - or the results grid remains invisible (and - of course does not count). Any time after a user enters a search for any day the already entered entries are tallied, and any future entries automatically are added to the search results and tallied.

I have tried a few approaches that trigger a search when the user first arrives at the form - even if there are no records. This is to start the tally even if there are no records for that date yet. But all I have tried results in the page being loaded - a search triggered - the page is reloaded - search triggered - on and on and on in a loop.

Now that I typed all that - does it make sense? Basically I do not even want the search grid - just a record grid that a user gets to, the first time a search grid appears below with a 'no records' message replaced with a 'No hours entered yet'. As the record grid is filed out and submitted the search grid populates with the entered information and starts adding the hours field.

Id be happy to elaborate on the reasons behind this to anyone intersted in helping


_________________
cmckinney@searay.com

Will program for a Sea Ray 680 SS ;}
View profile  Send private message
peterr


Posts: 5971
Posted: 07/14/2004, 8:48 PM

It seems that you are describing something that already happens by default. All grids show records automatically, without executing a search.
You can also configure the grid parameters to use some default values if none are coming from the search form. For example enter "CCGetUserID()" in the "Default Value" property of the parameter to show the current user's records.
_________________
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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