Domino Code Fragment

Code Name*
How to Use LotusScript to Prevent a User from Opening a View
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.225.35.81
Description*
How to Use LotusScript to Prevent a User from Opening a View
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Problem:
Using LotusScript, how can you (a database designer) prevent a user from opening a database
view?


Solution:
The NotesUIView QueryOpen event has a continue argument that, when set to the Boolean value
"False," prevents users from opening the view. Therefore, you can control access to a view by
placing, in the view's QueryOpen event, a script that first determines if the user should be

able to access the view and then sets, accordingly, the event's continue argument to either
"True" or "False."