CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Where to put custom validation functions.

Print topic Send  topic

Author Message

Posts: 14
Posted: 11/18/2004, 5:30 AM

Sorry if this is an easy question but I would like to
a little more extensive validation of items entered.
For example, I want to verify a DATE and a "DAY_TYPE" against
a database (various validations would take place) but suffice
to say I know I would need to write some kind of SQL statement.
I understand that I can put this code in the OnValidation of the record (I think).
However to make my life easier I would like to put the validation code
in a function and call that function from the OnValidation event. My main question
is where can I put my Custom Function and keep it safe from Code Charge "over writing it".

Also, since I will accessing the database to accomplish the validation does it matter where
I put that code?
View profile  Send private message
Posted: 11/18/2004, 6:54 AM


You can put your functions between CCS blocks (the gray blocks of code in generated files) in appropriate class. For example you can use <FormName>DataProvider class and put your methods between constructor and LoadParams methods


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login

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