Domino Code Fragment

Code Name*
Assign Navigator on Database open.
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.223.32.230
Description*
The following is used in the PostOpen event of the Database Script to assign a Navigator and View depending on the users Role.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
The following is used in the PostOpen event of the Database Script to assign a Navigator and View depending on the users Role. You set the default of the database properties to launch As last viewed by user. Using ViewChange forces the default view to close.


@If(@IsMember("[Developer]"; @UserRoles);

@Do(@Command([ViewChange]; "AllDocuments");@Command( [OpenNavigator] ; "(AdminNavigator)") );

@PostedCommand( [OpenNavigator] ; "(MainNavigator)"))

Note: I also made the Navigators hidden so they could not select them from the Show menu.