I am a student. I am now doing my final year project based on domino designer. This is basically like a search engine and it will be able to search through all the documents in a database based on some particular search criteria. Right now what I am doing is I use the scripts that search the view including all the documents created and match with the search criteria. If any, the script will put the documents into a folder. But what I want is to show the results to the user. I have been trying about two weeks but I have no ideas. If you could give me some programming flow (or) some sample scripts, that might help. I am also a new user of domino designer.
Sub Initialize Dim session As New NotesSession Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Dim j As Integer Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim collection As NotesDocumentCollection Set db = session.CurrentDatabase Set uidoc = workspace.CurrentDocument Set view = db.GetView( "All view" ) j = view.FTSearch( uidoc.FieldGetText( "Customer" ), 10 ) 'And view.FTSearch( uidoc.FieldGetText( "Technology" ), 10 ) Set doc = view.GetFirstDocument For i = 1 To j
I'm not completely sure that I understand exactly what you want to do... But if it's to display the folder containing the documents that matched the search criteria there are numerous ways to accomplish this. My solution assumes that you are trying to do this in the Notes client... One way you could do this is to use the OpenDatabase method of the NotesUIWorkspace class at the end of your script to open the folder, like so:
Call workspace.OpenDatabase(db.CurrentServer , db.FilePath, strFolderName )
This was first published in March 2002