Folder Generic Events
The folder generic events allow you to implement custom functionality for folders, including folder types. Some of the events that apply to folders also apply to documents.
Folder Generic Event Sequences
The events that occur for the folder generic commands are shown in the following lists in the sequence that they occur.
Change Folder Type event sequence
-
DocGenericEvent_PrepareCommand
-
FolderGenericEvent_InitializeChangeFolderType
-
FolderGenericEvent_BeforeChangeFolderType
-
FolderGenericEvent_AfterChangeFolderType
-
FolderGenericEvent_BeforeNewFolder
-
FolderGenericEvent_AfterNewFolder
-
FolderGenericEvent_TerminateChangeFolderType
Delete Folder event sequence
-
DocGenericEvent_PrepareCommand
-
DocGenericEvent_InitializeDelete
-
DocGenericEvent_BeforeDelete
-
DocGenericEvent_AfterDelete
-
DocGenericEvent_TerminateDelete
New Folder event sequence
-
FolderGenericEvent_BeforeNewFolder
-
DocGenericEvent_OnProperties
-
FolderGenericEvent_AfterNewFolder
-
DocGenericEvent_*Rename events — Occurs in PowerWeb only when creating a new folder.
FolderGenericEvent_AfterNewFolder Event
Occurs after a user creates a new folder in the vault.
Syntax
FolderGenericEvent_AfterNewFolder(Batch, Action)
Name | Description |
---|---|
Batch |
An object that represents the batch of documents the user has selected. |
Action |
Long integer that represents one or more AS_IMPORTTYPE constants. |
FolderGenericEvent_BeforeNewFolder Event
Occurs before a user creates a new folder in the vault.
Syntax
FolderGenericEvent_BeforeNewFolder(Batch, Action)
Name | Description |
---|---|
Batch |
An object that represents the batch of documents the user has selected. |
Action |
Long integer that represents one or more AS_IMPORTTYPE constants. |
FolderGenericEvent_*ChangeFolder Events
Occurs when a user changes the folder type of an existing folder.
Syntax
FolderGenericEvent_*ChangeFolder(Batch)
Name | Description |
---|---|
Batch |
An object that represents the batch of documents the user has selected. |
NewType |
A string that contains the name of the new folder type selected by the user. Passed only to the BeforeChangeFolder event. |
OldType |
A string that contains the name of the original folder type of the folder. Passed only to the AfterChangeFolder event. |