Identify the Button Pressed in Exec Store of Handler [message #1231808] |
Wed, 15 January 2014 13:03 |
|
Hi all,
I have the necessity to identify which button is pressed when is executed the method "Exec Store" in Handler of my form, because in the "Exec Click Action" of each button I set a global property that I need to retrieve.
I see that the "Exec Store" method is executed before the "Exec Click Action" method.
How I can solve this problem?
Thanks in advance for any help
|
|
|
|
Re: Identify the Button Pressed in Exec Store of Handler [message #1231845 is a reply to message #1231833] |
Wed, 15 January 2014 14:44 |
|
Hi Jeremie,
I have 5 buttons (3 AbstractButton, 1 AbstractCancel and 1 AbstractOkButton) on my form, for each one I have implemented execClickAction which imposed the value of the global variable.
I set for 2 of these buttons the property SystemType equals None and for the other equals to SystemType.Ok, SystemType.Cancel and SystemType.Cancel
I have a common logic that is execute for these three type of buttons (SystemType.Ok, SystemType.Cancel and SystemType.Cancel) and it's executed in the Handler with the method "ExecStore":
@Override
public void execStore() throws ProcessingException {
IOrderDetailsProcessService service = SERVICES.getService(IOrderDetailsProcessService.class);
OrderDetailsFormData formData = new OrderDetailsFormData();
exportFormData(formData);
formData = service.create(formData);
//My Logic
......
}
In this point, I have the necessity to identify which of these buttons are pressed.
Is this possible or not? If yes, how? Otherwise I need to identify another way to do this.
I hope to give you all information to evaluate my request.
Thanks in advance for your help and suggestion
|
|
|
|
Powered by
FUDForum. Page generated in 0.04053 seconds