Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Info

If you don’t like reading, you can watch the video.

Panel
panelIconId1f3a5
panelIcon:movie_camera:
panelIconText🎥
bgColor#DEEBFF

https://youtu.be/o7haVa5T-Uw

premium_VBSCRIPTING_product_userguide_UG - v0.12.pdf

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