Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Validation, warnings and errors
Validation, warnings and errors [message #1105766] Tue, 10 September 2013 08:51 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 310
Registered: August 2011
Senior Member
Hi,

When the user stores a form, I do all kind of validations on the server side. This can lead to VetoExceptions on the server so the action is aborted and the user gets a nice box with error messages.

Now we have a requirement that the system can give warnings and the user can override these. So if there are only warnings the error message box should have an option (button) that means Continue (ignore the warnings).

Is there some kind of support for this behaviour already in Scout or some "standard" way to achive this in Scout?

Regards Bertin
Re: Validation, warnings and errors [message #1105873 is a reply to message #1105766] Tue, 10 September 2013 11:38 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 818
Registered: October 2011
Senior Member
In your FormHandler during execValidate() you do what you want. In your case I would create a new FormData and import the current values (exactly like in execStore()) and call a "validate(YourFormData)" in the process service.

You can define a bean that will contain the answer from the server. In your execValidate(), depending on this answer you display a message box and depending on the answer you return true (if the validation is successful, in this case execStore will be called) or false if the user need to return to the form to change something.
Re: Validation, warnings and errors [message #1107410 is a reply to message #1105873] Thu, 12 September 2013 11:01 Go to previous message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 310
Registered: August 2011
Senior Member
Hi Jeremie,

based on your response I have an nice solution now.

Thanks
Previous Topic:Enable Filter on TableField
Next Topic:Closing all sessions
Goto Forum:
  


Current Time: Sat Dec 20 22:26:51 GMT 2014

Powered by FUDForum. Page generated in 0.01828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software