Fullscreen Image

This section covers Meridian Enterprise 2026. View other versions.

Document Hybrid Events

Document hybrid events allow you to extend custom functionality when hybrid parts are attached and detached.

ClosedHybrid parts event sequence

The events that occur for the document hybrid part commands are shown in the following list in the sequence that they occur.

  • DocGenericEvent_PrepareCommand

  • DocHybridEvent_InitializeHybridParts

  • DocHybridEvent_BeforeHybridPart

  • DocHybridEvent_AfterHybridPart

  • DocHybridEvent_TerminateHybridParts

  • DocGenericEvent_*Rename events: Occurs in PowerWeb only when creating a new part.

ClosedAfterHybridPart Event

Occurs after a hybrid document action is performed on a document.

Syntax

DocHybridEvent_AfterHybridPart(Batch, Action, PartName)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Action

A long integer that represents one or more AS_HYBRID_ACTION constants.

PartName

Optional name for the hybrid part.

ClosedBeforeHybridPart Event

Occurs before a hybrid document action is performed on a document.

Syntax

DocHybridEvent_BeforeHybridPart(Batch, Action, PartName)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Action

A long integer that represents one or more AS_HYBRID_ACTION constants.

PartName

Optional name for the hybrid part.

ClosedInitializeHybridParts Event

Occurs before hybrid document actions are performed on a batch of documents.

Syntax

DocHybridEvent_InitializeHybridParts(Batch, Action)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

Action

A long integer that represents one or more AS_HYBRID_ACTION constants.

ClosedBeforeConvert2Hybrid Event

Occurs before a normal document is converted into a hybrid document by the Convert to Hybrid command.

Syntax

DocHybridEvent_BeforeConvert2Hybrid(Batch, TemplateName)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

TemplateName The name of the template selected by the user.

ClosedAfterConvert2Hybrid Event

Occurs after a normal document has been converted into a hybrid document by the Convert to Hybrid command.

Syntax

DocHybridEvent_AfterConvert2Hybrid(Batch, TemplateName)
Parameters
Name Description

Batch

An object that represents the batch of documents the user has selected.

TemplateName The name of the template selected by the user.