Button/Process Blocking
Trigger Setup
In this sample, we will examine a common scenario for preventing an operator from clicking on a button on an application.
In this sample, we will add a VBScript to the Job Receipt application, blocking the operator from using the Allocation button as shown below:
If you don’t like reading, you can watch the video.
Try it!
Right Click and add a function for “OnBeforeButtonClick” event as shown below.
On from the Format Builder, select the “Allocate” button and click “Add XML“
Clean the string on the left and replace it will the following string, this indicates to the button to cancel the “Click” and this disable core logic that was going to be executed.
Close and Re-Open the application. Note clicking the “Allocate” button now does nothing. A message can be added to provide the operator details that the button is disabled should this be required.
Let’s review sample Scripts of how other functions within VBScripting works - Control Interaction