Contents_after_item, Syntax, Parameters example – Kofax DM API User Manual
Page 328

308 C
HAPTER
5
%CONTENTS_AFTER_ITEM
%CONTENTS_AFTER_ITEM
This token is used in conjunction with
%CONTENTS_DIRECTIVE
to
specify that a folder should be moved after another folder.
Syntax
PCDDocObject.SetProperty( _
“%CONTENTS_AFTER_ITEM”, lngAfterItem)
Parameters
Example
'Create the object.
pDocObject = CreateObject("PCDClient.PCDDocObject")
'Check for errors.
checkError(pDocObject, "ERROR_CREATECSIOBJECT_PCDDOCOBJECT")
'Set the DM security token.
pDocObject.SetDST(strDST)
'Set object type.
pDocObject.SetObjectType("ContentItem")
'Set the library.
pDocObject.SetProperty("%TARGET_LIBRARY", strFolderLib)
'Set the item to be moved.
pDocObject.SetProperty("%CONTENTS_ITEM", systemID)
'Set the item to be moved after.
pDocObject.SetProperty("%CONTENTS_AFTER_ITEM", afterSystemID)
'Specify the move_after action.
pDocObject.SetProperty("%CONTENTS_DIRECTIVE", _
%CONTENTS_AFTER_ITEM
The token identifier that indicates that
the current item is to be positioned after
another item.
lngAfterItem
The value from the
DOCNUMBER
column of the
PROFILE table that
identifies the item after which the new
link is to be inserted.