Q
Problem solve Get help with specific problems with your technologies, process and projects.

Sorting attachments from FileUpload when displayed on Web client

Is there a way to sort attachments that were attached using the FileUpload tool when displayed on the Web client?
Have a look at codestore.net. There's a nice set of articles on how to modify the default Domino behavior when displaying attachments:

Basically you first hide the attachments using a field that you name V2AttachmentOptions (text, computed for display) and let the value of the field compute to "0" to hide the attachments. Then you display the attachment(s) using code like this:
@If(!@Attachments; @Return(""); "");
"View attachments here:<br>" +
@Implode("<a href="" + @Text
(@DocumentUniqueID) + "/$file/" + 
@AttachmentNames + "">+
@AttachmentNames + </a>"; "<br>")
I hope you're using Domino R6. In R6 the @sort function has been implemented, and you will be able to use it to sort the list of attachments.

If you're on R5, go to the Lotus Developer Network R4/R5 forum and search for @sort. There are plenty of examples -- with lots of lines of code, I'm afraid.

Dig Deeper on Lotus Notes Domino Formula Language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

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 ...

SearchDataCenter

SearchContentManagement

Close