Currently, in order to launch attachments in a Notes databases on the Web, you must enter the document and click on the attachment icon at the bottom of the document. This code allows you to create an attachment icon in the view and:
1) Hovering over the icon reveals the attachment name in a pop up.
2) Doubleclicking the icon launches the attachment without entering the document.
3) Works with multiple attachments.
REM"Declare DB Name and path";
DBName := @ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName; -1);" ";"+");"\";"/"); open:="?OpenElement";
REM "Declare view name";
view:=@ReplaceSubstring(@ReplaceSubstring(@Subset(@ViewTitle; 1);" ";"+");"\";"/");
REM "Declare document ID";
docid:=@Text(@DocumentUniqueID);
REM "Build URL link to attachment";
url:="[<a href=/"+dbname+"/"+view+"/"+docid+"/$FILE/"+@AttachmentNames+"><img src=/icons/vwicn005.gif border=0 ALT="+@AttachmentNames+"></a>]";
REM "If attachments exist then show, otherwise, don't";
@If(!@Attachments;"";url)
This was first published in November 2000