Re: Validation plug-ins [message #265 is a reply to message #264] |
Thu, 07 September 2006 09:34 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I don't really want to mess with the current validation class as it is totally generic, but the need for custom validation rules which can be applied after the generic rules does seem like a reasonable request.
I will have a think about how this may be done to see what the possibilities are, then I will get back to you.
Off the top of my head something like an extra field in the data dictionary to identify a validation method for that field, at at runtime I could instantiate an object from a copy of 'custom_validation_class' which exists in your project directory, then pass that field's value to that method name. How does that sound?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|