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

AVEVA™ Engineering

General Capture of DataBase Changes

  • Last UpdatedJun 02, 2022
  • 1 minute read

DBlayer maintains a change list of Database (DB) changes. Users can subscribe to this list of changes.

The list of changes is encapsulated in the DbUserChanges class. The DbUserChanges class has methods to determine what changes have been made, for example: elements created or deleted or modified.

The delegates are:

public delegate void ChangeEventHandler(DbUserChanges changes);

To add a subscriber (handler), the method is:

public static void AddChangeEventHandler(ChangeDelegate plug)

This will be in the DbEvents class.

The subscribers receive a DbUserChanges class instance which has a list of elements changed and what the changes are.

The events are fired as follows:

  • At the end of running in a Programmable Macro Language (PML) macro

  • After the execution of an AVEVA module specific command on the command line

  • When any action on a form has completed.

The event will only be fired if database changes have been made.

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