Domino Code Fragment

Code Name*
Dynamically calculate the subdirectory and file name portion of the URL
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.17.203.68
Description*
Dynamically calculates the subdirectory and file name portion of the URL using @dbname results and use that calculation in building your URL's instead of the replica id.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
You can dynamically calculate the subdirectory and file name portion of the URL using @dbname results and use that calculation in building your URL's instead of the replica id. You do need to handle backslash to forward slash conversion as well as blank to plus conversion at a minumum. A formula that can be used to get the proper DB string for the URL is:

DB := @ReplaceSubstring(@Subset(@DbName; -1); "\\":" "; "/":"+");