Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Validating a Form when not using OK-Button
Validating a Form when not using OK-Button [message #1410654] Thu, 21 August 2014 06:02 Go to next message
Eclipse UserFriend
I am currently try to figure out how I could add the same form validation (in specific checking whether all mandatory fields are really filled in) that I get when hitting the OK-Button of a form in dialog mode. In my case I want to save the formData to use it later by clicking a normal button and doing my stuff in the execClick() method, but have to validate before that the exported formData really has all the mandatory fields set. The form could either be displayed in view or as a dialog. Is it possible to do so?

What I tried is to use the validateForm()-method however using this results in null-pointer exceptions. When debugging I end up somewhere in the AbstractOkButton.class even though I have not a single OKButton on the page. Eventually then the null pointer exception occurs.

[Updated on: Thu, 21 August 2014 06:03] by Moderator

Re: Validating a Form when not using OK-Button [message #1410711 is a reply to message #1410654] Thu, 21 August 2014 08:44 Go to previous message
Eclipse UserFriend
Hi
It should be possible to use validateForm(). Can you give us more information about the exception or a description how to reproduce this behavior?
Previous Topic:SCout ORM
Next Topic:SmartField problem
Goto Forum:
  


Current Time: Fri Jul 04 08:36:53 EDT 2025

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

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

Back to the top