Contents_move_down, Syntax, Parameters example – Kofax DM API User Manual

Page 338

Advertising
background image

318 C

HAPTER

5

%CONTENTS_MOVE_DOWN

%CONTENTS_MOVE_DOWN

Use this token in conjunction with

%CONTENTS_DIRECTIVE

to move a

folder down by one position.

Syntax

PCDDocObject.SetProperty( _

“%CONTENTS_DIRECTIVE”, _

“%CONTENTS_MOVE_DOWN”)

Parameters

Example

'Get the library name.

Dim strFolderLib As String

strFolderLib = InputBox( “Enter the library name.")


'Create the doc object.

pDocObject = CreateObject("PCDClient.PCDDocObject")


'Check for errors.

checkError(pDocObject, "ERROR_CREATECSIOBJECT_PCDDOCOBJECT")


'Set the DM security token.

pDocObject.SetDST(strDST)


'Set the object type.

pDocObject.SetObjectType("ContentItem")


'Set the destination library.

pDocObject.SetProperty("%TARGET_LIBRARY", strFolderLib)


pDocObject.SetProperty("%CONTENTS_ITEM", systemID)


'Set the action.

pDocObject.SetProperty("%CONTENTS_DIRECTIVE", _

%CONTENTS_DIRECTIVE

The token identifier that indicates that
the program will manipulate the contents
of a folder.

%CONTENTS_MOVE_ DOWN

The token identifier that the target folder
is to be displayed one position further
down in the folder collection.

Advertising