How Can We Help?
Scenario
Inside the command option, is it possible to run the script when a trigger button is being clicked and before the OnSubmit method? For instance, removing a required field setting for all controls when a “Cancel/Discard” button is being clicked.
Explanation
Once a trigger button is being clicked, XMPro engine will run all the OnRefresh method under the activityA specific step in a process. It will be the user interface for that step (web form or a screen), for example, the Leave Application (screen interface or web form) will be the first Activity in the Leave Requisition process. The Leave Application Authorization will be the second step or Activity in the Leave Requisition process. One Process can have multiple activities. by the following sequence:
Activity Managed Code OnRefresh > Each of the control with OnRefresh method written by Index order.
The below example shows how to identify if the trigger button is being clicked at OnRefresh method.
Example
Get the Command Option object group with the below script at the OnRefresh method in one of the control / at the managed code of the activity.
Comments are closed.