Checking field validity [message #1284490] |
Fri, 04 April 2014 14:44 |
davide . Messages: 12 Registered: March 2014 |
Junior Member |
|
|
Hi all. In my application I need to check the validity of data users enter in form fields. What I'd like to do is pretty basic: when user presses the OK button in a form, before calling the service to create/update the related db record, Id like to be able to write the code to check each form's field input and, if content does not match some criteria, show a simple dialog with customizable content.
So far I've not found, in the form code, any callback to do this. for example I've overridden the execValidate method. Here I can put the code for the checks, but if they fail the process is silently terminated, and no feedback is shown to the user. Am I supposed to open a dialog by myself?
what is the most "scout friendly" way to accomplish this? Maybe have I to do this in the service, returning a processing exception if fields contents does not match criteria?
Many thanks in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03506 seconds