Version_directive – Kofax DM API User Manual
Page 520

500 C
HAPTER
5
%VERSION_DIRECTIVE
%VERSION_DIRECTIVE
This token indicates that any of several supported actions is to affect the
specified document version.
Syntax
PCDDocObject.SetProperty(“%VERSION_DIRECTIVE”, _
vntVersionID)
Parameters
Usage
The
%VERSION_DIRECTIVE
token supports any of the following:
Example
'Create a document object.
pDelObject = CreateObject("PCDClient.PCDDocObject.1")
'Set the DM security token.
%VERSION_DIRECTIVE
The token identifier that indicates a
version directive is being set.
strVersionAction
Any of the actions that the
%VERSION_DIRECTIVE token
supports.
Token Identifier
Description
%ADD_ATTACHMENT
Creates an attachment.
%MAKE_READ_ONLY
Make this version read only.
%PCD_DELETEVERSION
Delete the specified version.
%PCD_NEW_VERSION
Create a new version.
%PCD_NEWSUBVERSION
Create a new sub-version.
%PCD_UPDATE_VERSION
Update modifications made to a version.
%PUBLISH_VERSION
Publish a version.
%REMOVE_READ_ONLY
Set the version so it is not read only.
%UNPUBLISH_VERSION
Set the version so it is not published.