Addsearchcriteria – Kofax DM API User Manual
Page 163

DM API M
ETHODS
AND
P
ROPERTIES
143
AddSearchCriteria
DST = pClient.
'Now that you have the DST, create a search object.
pSearch = Server.CreateObject( _
"PCDClient.
")
'Pass the DST to the search object.
pSearch.
( DST )
'Add a search Library to the search.
pSearch.
("LegalLaw")
'Specify the form to use for this search.
pSearch.
("def_qbe")
'Add the return properties you want returned.
pSearch.
("docname")
pSearch.
("docnum")
pSearch.
("AUTHOR_ID")
'Before setting search criteria, get the
'values from the form the user submitted.
AuthorValue =
txtAuthor.Text
DocnumValue =
CInt( txtDocNum.Text )
'Add whatever search criteria you want.
pSearch.
(%MAXDAYS”, “30”)
If (AuthorValue <>
""
) Then
pSearch.
“AUTHOR_ID”, AuthorValue)
If (DocnumValue <>
""
) Then
pSearch.
(“docnum”, DocnumValue)
'Execute the search.
psearch.
.
.
.