Domino Code Fragment

Code Name*
Go to the document without scrolling or getting the next set of documents on the web.
When you have a categorized view on the Web, and the documents are protected with READERS.
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.142.53.68
Description*
Going to the document without scrolling or getting the next set of documents on the web. When you have a categorized view on the Web, and the documents are protected with READERS name security you still see the categorized names of the users even though you can't expand them to see their documents. So if you have a couple of hundred documents they have to scroll through all the categorized names to get to their own name. One way of going directly to their username is using the 'STARTKEY' parameter.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
You need a path to navigate to your database and you need the client check to make sure your code works in a Notes client and on the Web. Make sure the user you are using in the StartKey parameter has documents or you will get an error. This works great for Embedded Navigators and Embedded Views.
Files/Graphics attachments (if applicable): Code:


This formula will work in a navigator, button, or hotspot.

path = Path of your notes database
@IF(@ClientType := "Notes";@Command([OpenView];"YourView"];@Success);
Results = @Dblookup - Use a dblookup to see if that person has any documents. If you don't and you try to use the startkey statement you will get an error message.
@IF(results = "";@UrlOpen("./" + path + "/viewname?OpenView");@UrlOpen("./" + path + "/viewname?OpenView&Startkey=" + @UserName));