CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Where to put custom validation functions.

Print topic Send  topic

Author Message
jimlocigno

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

Hi,
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?
Thanks
View profile  Send private message
Stan
Posted: 11/18/2004, 6:54 AM

Hi

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

Stan

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.