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
|
|
|
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
|
|
|
|