Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Manufacturing Execution System 2023 R2

PreButtonClicked event and PostButtonClicked events

PreButtonClicked event and PostButtonClicked events

  • Last UpdatedNov 26, 2024
  • 1 minute read

The button bar that is associated with a .NET control sends the pre- and post-button click events on the associated control.

For example, when an operator opens a window in the application that provides the Job/Work Queue control and an associated button bar.

  1. If the control does not locate an existing client session, then the user is prompted to connect, and then log on to one or more entities.

    The Job Queue control displays various jobs assigned to an entity.

  2. If the user selects one of the jobs, and then clicks the Start Job button on the button bar, the Start Job button event is triggered.

    The PreButtonClicked event is triggered.

    In the following example, the PreButtonClicked event is captured using the e.ButtonID property of the event.

    The Edit Animations dialog showing how a preButtenClicked event is captured using the e.ButtonID property.

    Each button contains an associated ID. However, you can also create custom buttons and assign a custom ID number to the buttons.

  3. The start event is detected and the row that a user selects in the grid is retrieved.

  4. The values from the selected row are read into attributes and the Start command is canceled.

    If a command is canceled, the .NET control does not execute the start transaction and calls a custom script to perform the Start command to include additional transactions.

TitleResults for “How to create a CRG?”Also Available in