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";
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
This Content Component encountered an error

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close