UpdateHandler: String;
The UpdateHandler property determines a global handler for update work events.
As a property value, specify a unit/form/assembly and a class. The class should inherit from the UpdateCallback class and implement its methods. The value is set as follows: <Unit/form/assembly identifier>.<Class name>.
Executing the example requires that the repository contains a unit with the MOD_UPDATE identifier. The unit has a class for handling update events. The class is given in the example for the IUpdateCallback.OnCallback property.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
Mb: IMetabase;
Begin
Mb := MetabaseClass.Active;
Mb.UpdateHandler := "MOD_UPDATE.CUpdateCallback";
End Sub UserProc;
After executing the example a global event handler that works with updates is determined for the repository.
See also: