Domino Code Fragment

Code Name*
Dynamically select documents per user without using a
ReaderNames field?
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.144.36.141
Description*
Dynamically select documents per user without using a
ReaderNames field?
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Use this for a view selection formula:

username := @Name([CN]; @UserName);
Select (Form = "OrderForm") & (@Contains(OrderOwner;username) = 1)


and set the View Properties so that the view index is discarded every time.

This will select documents that use the form
"OrderForm" and were created by the current user.