Does anyone know where the code is behind the view search bar? I need to create a search/query form in another database based on certain fields and would love to be able to view the code in that to get an idea of what I need to do.
Thank you!
Lori
Does anyone know where the code is behind the view search bar? I need to create a search/query form in another database based on certain fields and would love to be able to view the code in that to get an idea of what I need to do.
Thank you!
Lori
Subject: View Search Bar – anyone know where code is?
Not sure if this helps, but you can write a full text search in script by substituting the actual query you would type in the search bar in a query passed to FTSearch function…
something like this:
Dim DirectoryDB As new NotesDatabase(“”,“”)
Dim DirectoryV As notesview
Dim DirectoryCollection As NotesDocumentCollection
Dim SearchString As String
Call DirectoryDB.Open([Servername],“names.nsf”)
Set DirectoryV = DirectoryDB.GetView(“People”)
SearchString = “Smith”
Query$ = ("field FullName Contains " & SearchString)
Set DirectoryCollection = DirectoryDB.FTSearch( Query$, 0 )