Button "OK" [message #1016714] |
Thu, 07 March 2013 13:03 |
|
Hi,
I have the following question: I have my form in Scout with many fields in which I have defined a set of validation rules (Exec Validate Value), and so far no problem.
Now on the OK button I customized the "Exec Click Action" to perform certain operations, that I want to be done only when all fields are correct according to various validation rules set.
When I click on OK button and at leat one field isn't valid, a popup is displayed automatically with a message (see image):
but the instructions in the method "Exec Click Action" are still performed.
How do I figure out when it open this popup? What condition I should test?
Thanks in advance for help and suggestions
-
Attachment: Image.png
(Size: 24.39KB, Downloaded 773 times)
|
|
|
|
Re: Button "OK" [message #1016738 is a reply to message #1016729] |
Thu, 07 March 2013 14:09 |
|
Thank you fo ryour suggestion.
Now move my business logic from "Exec Click Action" of OK Button to "ExecStore".
I have a question: when I execute the ExecStore, how do I detect which fields have been corrected or changed? Is it possible?
[Updated on: Thu, 07 March 2013 14:32] Report message to a moderator
|
|
|
|
Re: Button "OK" [message #1017011 is a reply to message #1016810] |
Fri, 08 March 2013 15:22 |
|
Hi Jeremie,
I moved my business logic in ExecStore of the handlers "NewHandler" and "ModifyHandler", because is the same.
When I click on OK Button, these methods are not called. What I forgot or wrong?
@Order(30.0)
public class OkButton extends AbstractOkButton {
@Override
protected String getConfiguredLabel() {
return TEXTS.get("Ok");
}
}
@Override
public void execStore() throws ProcessingException {
IOrderDetailsProcessService service = SERVICES.getService(IOrderDetailsProcessService.class);
OrderDetailsFormData formData = new OrderDetailsFormData();
exportFormData(formData);
formData = service.store(formData);
//Save order Information
saveOrderInformation();
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03914 seconds