Manage Learn to apply best practices and optimize your operations.

Launching Attachments from Views on the Web

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";

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";

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...