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

Page 430

Advertising
background image

410 C

HAPTER

5

%OBJECT_IDENTIFIER

%OBJECT_IDENTIFIER

The

%OBJECT_IDENTIFIER

token is used to set the document ID

number of a document or or to retrieve a search object’s identifier.

Syntax

PCDDocObject.SetProperty(“%OBJECT_IDENTIFIER”, _

lDocID)

PCDDocObject.GetPropertyValue( _

“%OBJECT_IDENTIFIER”)

PCDSearch.AddSearchCriteria( _

“%OBJECT_IDENTIFIER”, lDocID)

PCDSearch.GetPropertyValue( _

“%OBJECT_IDENTIFIER”)

Parameters

Example

'Create a search object.

Set pSearch = CreateObject("PCDClient.PCDSearch")


'Check for errors.

checkError(pSearch, "ERROR_CREATECSIOBJECT_PCDSearch")


'Set the DM security token.

pSearch.SetDST(strDST)


'Add the search library.

pSearch.AddSearchLib(library)


'Identify the search form.

pSearch.SetSearchObject("VersionsSearch")


'Add the system ID.

pSearch.AddSearchCriteria("%OBJECT_IDENTIFIER", lDocNum)

%OBJECT_IDENTIFIER

The token identifier that indicates that
this command line involves a document
ID number.

lDocID

If the document ID number is being set,
this is the value that is to be used.

Advertising