Versions Compared

Key

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

<menu path> <link to F1 content>

<intro text>

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:

Image Added

Info

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

Panel
panelIconId1f3a5
panelIcon:movie_camera:
panelIconText🎥
bgColor#DEEBFF

<link to YouTube video>

<link to PDF doc on my OneDrive>

Try it!

<content>

Try it!

  • Right Click and add a function for “OnBeforeButtonClick” event as shown below.

Image Added
  • On from the Format Builder, select the “Allocate” button and click “Add XML

Image Added
  • 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.

Image Added
  • 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