Get_remote_related, Get_remote_related 395, Syntax – Kofax DM API User Manual
Page 415: Parameters example

DM API T
OKENS
395
%GET_REMOTE_RELATED
%GET_REMOTE_RELATED
This token indicates that the search should only return related items
that are located in document libraries that are remote to the library that
contains search document.
Syntax
PCDSearch.AddSearchCriteria( _
“%GET_RELATED_ITEMS”, _
“%GET_REMOTE_RELATED”)
Parameters
Example
'Create a search object.
pRelated = CreateObject("PCDClient.PCDSearch")
'Check for errors.
checkError(pRelated, "ERROR_CREATESEARCH")
'Set the search type.
pRelated.SetSearchObject("RelatedItemsSearch")
'Set the DM security token.
pRelated.SetDST(strDST)
'Current display library.
pRelated.AddSearchLib(library)
'Search for items related to this search object.
pRelated.AddSearchCriteria(“%OBJECT_IDENTIFIER”, _
strDocNum)
%GET_RELATED_ITEMS
This token identifier indicates that a
search parameter is to be set that
indicates whether local or remote
libraries are to be searched.
%GET_REMOTE_RELATED
This token identifier indicates that the
search is to retrieve related documents
only from libraries that are remote to the
library that contains the search object.