Addsearchlib, Ec.addsearchlib, T.addsearchlib – Kofax DM API User Manual
Page 165
![background image](/manuals/658216/165/background.png)
DM API M
ETHODS
AND
P
ROPERTIES
145
AddSearchLib
AddSearchLib
Use this method to add a library name to the list of libraries to search.
Your search will return no data unless you call AddSearchLib at least
one time before you execute your search.
Syntax
PCDLookup.AddSearchLib( strLibName )
PCDRecentDoc.AddSearchLib( strLibName )
PCDSearch.AddSearchLib( strLibName )
Parameter
Returns
Returns an
HRESULT
to receive the result of the call.
S_OK
indicates
success. Languages such as JavaScript, Visual Basic, and VBScript
return this as a function value.
Example
The following adds a search library from a library selected on a form
the user has submitted.
.
.
.
'Save the document security token (DST) from the
'DM Server so the search can execute.
strDST = pClient.
'Now that you have the DST, create a search object.
pSearch = Server.CreateObject( _
"PCDClient.
strLibName
The name of the library to search. This name
has to match a value in the
LIBRARY_NAME
column of the
REMOTE_LIBRARIES table of
the DM library where the user is currently
logged on.