Related Topics ...How to Use the Event Declaration Builder |
We can pass arguments to an event handler by specifying that an event accepts arguments in the Event Declaration builder call and supplying those arguments when you call the fireEventName method.
Configure the method specified by the Event Handler to accept arguments of the same number and type as those defined in the Event Declaration builder call. Your method can then process the arguments passed as needed.
To pass arguments to an event handler:
webAppAccess.fireMyEvent("CustomerName", "CustomerID");
...
webAppAccess.getVariables().setText("Customer_Name", arg1);
webAppAccess.getVariables().setText("Customer_ID", arg2);