Reputation: 901
Is there a way to determine that UI view show search results? better to use LotusScript...
I just need to prevent users from doing specific actions to the documents selected in search results view.
Thanks
Upvotes: 0
Views: 359
Reputation: 12060
A view can not be programmatically set to only show search results. This task is usually achieved by using a "SPOFU"- Folder (Shared, Private on First use) and put the search results in there with your Code. There are a lot of things to consider when doing such code, therefor I only add a script snippet on how it would look:
Dim ses as New NotesSession
Dim db as NotesDatabase
Dim dc as NotesDocumentCollection
Set dc = db.FtSearch(...
Call dc.PutAllInfolder( "SearchResults" )
This code is not tested, and it does not provide a way to empty the folder before the search and to open the folder after successfull search, but it should give an idea...
Upvotes: 1