Domino Code Fragment

Code Name*
Attachment in views
Date*
01/19/1999
Source (or email address if you prefer)*
Niels Ull Harremoes
IP address:.18.220.130.165
Description*
Type*
Formula, HTML
Categories*
User Interface (Web)
Implementation:
None (plug and play)
Required Client:
(none)
Server:
4.5
Limitations:
Web only - doesn't look good in Notes. A way to overcome this for 4.6 clients and later would be to make two copies of the view, one visible in Notes only and one visible on the web. A simpler solution is to put this in the last column of the view and make the second-to-last really wide. In this way, Notes users will only see the column if they manually scroll out to view it.
Comments:
This is useful in a document library.

To prevent the display form getting too cluttered, a maximim of three attached files are displayed.
Files/Graphics attachments (if applicable): Code:
attList := @Subset(@AttachmentNames; 3);
@If(!@Attachments; "" ;
   ": " +
   @Implode("" + attList +""; ", ")) +
@If(@Attachments > 3; ", ..."; "")