Contents_move_to_top, Or the, Syntax – Kofax DM API User Manual

Page 340: Parameters example

Advertising
background image

320 C

HAPTER

5

%CONTENTS_MOVE_TO_TOP

%CONTENTS_MOVE_TO_TOP

Use this token in conjunction with

%CONTENTS_DIRECTIVE

to move a

folder to the top of the collection.

Syntax

PCDDocObject.SetProperty( _

“%CONTENTS_DIRECTIVE”, _

“%CONTENTS_MOVE_TO_TOP”)

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_TO_

TOP

This token indicates that the specified
folder is to be listed first in the folder
collection.

Advertising