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

Page 344

Advertising
background image

324 C

HAPTER

5

%CONTENTS_REORDER_CONTENTS

%CONTENTS_REORDER_CONTENTS

Use this token in conjunction with

%CONTENTS_DIRECTIVE

to

change the order of the folder collection.

Syntax

PCDDocObject.SetProperty( _

“%CONTENTS_DIRECTIVE”, _

“%CONTENTS_REORDER_CONTENTS”)

Parameters

Example

'Create the doc objects.

pDocObject = CreateObject("PCDClient.PCDDocObject")


'Check the error.

checkError(pDocObject, "ERROR_CREATECSIOBJECT_PCDDOCOBJECT")


'Set the DM security token.

pDocObject.SetDST(strDST)


'Set the object type.

pDocObject.SetObjectType("ContentsCollection")


'Set the destination library.

pDocObject.SetProperty("%TARGET_LIBRARY", strFolderLib)


'Set the content folder.

pDocObject.SetProperty("%CONTENTS_PARENT", folderNum)


'Set the version.

pDocObject.SetProperty("%CONTENTS_PARENT_VERSION", folderVersion)

%CONTENTS_DIRECTIVE

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

%CONTENTS_REORDER_

CONTENTS

The token identifier that the folder
collection is to be reordered according to
the sequence specified in the

%CONTENTS_REORDER_ARRAY
command.

Advertising