Owner's manual

DOKuStar Validation for Ascent Capture Page 30
Batch Events
Batch events concern opening and closing of a batch. When a batch is opened and closed, you get an event where
scripts can be added.
These events are events of the
Data object, thus requiring the use of a Data object as the event sink:
Dim WithEvents data As Data
Private Sub Application_OnProjectLoaded(ByVal App As Application)
Set data = App.Project.DataSet.Data
End Sub
OnPreImported
This event will be called after the user selected a batch, but before the batch is really opened, and can be canceled in
the
OnPreImporting routine. Since no data has been loaded yet, the Data object returned as a parameter is
empty. The
Schema part of the Dataset has been loaded at this point and can be examined by the scripting
routine.
Definition:
Private Sub data_OnPreImported(ByVal Data As Data)
OnPostImported
This event will be fired after the batch has been loaded. The Data object, which has been returned as parameter, is
filled.
Definition:
Private Sub Data_OnPostImported(ByVal Data As Data)
Note: There is no OnPostImporting event. The event cannot be canceled.