An event handler can be set up both for batch types and for the current document type. In that case, the document’s event handler runs first, followed by the batch type’s event handler.
Batch events
These handlers respond to events that affect a batch.- After batch created
- Before batch delete
- Before batch parameter change
- After page added
- Before page delete
- After document created
- Before document delete
- Before pages move
- After batch opened
- Before batch close
- Batch integrity check
Document events for batch types
These event handlers are set up in a batch’s properties or in a batch type’s properties.- Before document parameter change
- After document state changed
- After export completed
- Before matching
Document event for the current batch type
These event handlers are set up in a Document Definition’s properties.Field events
Event handlers for fields are set up in a Document Definition’s properties.Store procedures in global modules
Add procedures that you plan to use in several event handlers to a global module. To do this, select Events from the drop-down list on the toolbar of the script editor.Global modules are not available for event handlers in the Document Definition editor.
