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 -> IDE/GUI

 Set Number Of New Records in ASP

Print topic Send  topic

Author Message
mramirez18

Posts: 56
Posted: 08/27/2006, 6:35 PM

I have an application (CCS 2.3.2, Access, IIS) that collects information and submits the results to the database. On the Editable Grid - Data - properties I have the Records Per Page set to 20 and the Empty Rows set to 1. In the form navigation I have the page counts and no of pages displayed.

What I want to do and can not find a way that it only allows user to enter 3 records only, and then is presented with a warning.

Warning - "You can only enter 3 records for scheduling Automated Reports"
View profile  Send private message
kevind

Posts: 251
Posted: 09/28/2006, 12:36 PM

you should be able to set a session variable when submitting new records and then check its value in the before show event of the page in question

if cint( Session("NewRecords") )>3 then
response.redirect("WarnUser.asp")
end if

If the user tries to get around this by logging out and back in, I would add some code to store the count of their submissions to a table with a date and then check that before showing the page with a dlookup .

KD
_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
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.