|
Re: Check if tablePage content is valid [message #1856393 is a reply to message #1854951] |
Thu, 08 December 2022 11:52 |
|
Hi Edgar
On a normal form, when you click the "OkButton", every field is validated (execValidate is called). When a field detects an error, it throws a VetoException, which will then cancels the form store operation.
What kind of button is your "sendButton"? Did you implement the message box yourself or are you using the standard Scout validation mechanism? If you display the message box yourself, you might still need to throw a "hidden" VetoException to cancel the form store operation. This can be done like this:
VetoException ve = new VetoException("store cancelled");
ve.consume(); // don't display an additional message to the user
throw ve;
If it still does not work, can you post a (shortened) version of your code?
Regards,
Beat
|
|
|
Powered by
FUDForum. Page generated in 0.03575 seconds