Document Hybrid Events
Document hybrid events allow you to extend custom functionality when hybrid parts are attached and detached.
Hybrid 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.
AfterHybridPart Event
Occurs after a hybrid document action is performed on a document.
Syntax
DocHybridEvent_AfterHybridPart(Batch, Action, PartName)
BeforeHybridPart Event
Occurs before a hybrid document action is performed on a document.
Syntax
DocHybridEvent_BeforeHybridPart(Batch, Action, PartName)
InitializeHybridParts Event
Occurs before hybrid document actions are performed on a batch of documents.
Syntax
DocHybridEvent_InitializeHybridParts(Batch, Action)
| 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. |
BeforeConvert2Hybrid Event
Occurs before a normal document is converted into a hybrid document by the Convert to Hybrid command.
Syntax
DocHybridEvent_BeforeConvert2Hybrid(Batch, TemplateName)
| 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. |
AfterConvert2Hybrid Event
Occurs after a normal document has been converted into a hybrid document by the Convert to Hybrid command.
Syntax
DocHybridEvent_AfterConvert2Hybrid(Batch, TemplateName)
| 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. |