Skip to main content
FlexiCapture lets you create handlers for events that affect batches, documents, and fields. Event handlers are stored in batch types and Document Definitions. You can find their settings on the Event Handlers tab of the Properties dialog box of:
  • (Administrator) Batch Types (Developer) Batch Types ( (Distributed) for Document Definitions (Standalone) for specific batch types)
  • (Administrator) Projects (Developer) Projects (for all batch types in the project except for those for which event handlers have been set up in batch type properties)
  • (Administrator) Document Definitions (Developer) Document Definitions (for documents of the current type)

Batch events

These handlers respond to events that affect a batch.

Document events for batch types

These event handlers are set up in a batch’s properties or in a batch type’s properties.

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.
If the same event handler is set up for batch types and the current document type, the event handler for the document is executed first, followed by the event handler for batch types.

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.

Add external assemblies

If a script or a global module uses methods from an external assembly, you can add this external assembly on the .NET References tab of the properties dialog of an object (a batch type, a project, or a Document Definition).