Deear All
I want a search functionality for web application which should be able to search all document depending upon the values entered by the user
the senario is like this
i have a form suppose on which i have four field and the user may or may not enter the values in these fields.
i have designed the view and the first column of view is same as the first field on the search page
i have tried it using GetAllDocumentsByKey method of notes view class the code which i have written in an agent which is called onclick of a button
dim s as new notes session
dim db as notes database
dim doc as notes documnet
dim webdoc as notes document
dim vw as notes view
dim dc as notes documentcollection
dim searchkeys(0 to 3) as string
set db=s.current database
set vw=db.getview(“ABC”)
set webdoc=db.DocumentContext
set searchkeys(0)=webdoc.getitemvalue(“field1”)
set searchkeys(1)=webdoc.getitemvalue(“field2”)
.
.
set dc=vw.getalldocumentsbykey(“searchkeys”,false)
set doc=vw.getfirstdocument
while not doc is nothing
messagebox “document under criteria”+doc
wend
i wish to show all the documents to the user
pl put some code if you have it and the suggessions also
thanks alot
Mahesh