Contents_move_up, Contents_move_up 322, Syntax – Kofax DM API User Manual

Page 342: Parameters example

Advertising
background image

322 C

HAPTER

5

%CONTENTS_MOVE_UP

%CONTENTS_MOVE_UP

Use this token in conjunction with

%CONTENTS_DIRECTIVE

to move

a folder up by one position.

Syntax

PCDDocObject.SetProperty( _

“%CONTENTS_DIRECTIVE”, _

“%CONTENTS_MOVE_UP”)

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)


'Identify the object to be moved.

pDocObject.SetProperty("%CONTENTS_ITEM", systemID)


'Set the action.

%CONTENTS_DIRECTIVE

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

%CONTENTS_MOVE_UP

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

Advertising