Solved

Launching an attachment via browser - URGENT

Posted on 1999-01-28
2
155 Views
Last Modified: 2013-12-18
Hi!

I've a database that is run on the Web that allows a user to create new forms. User is also able to attach an attachment(usually Word doc) to the form.

The question is, how am I able to launch the attached attachment upon user clicking on the new document link WITHOUT going into the document itself?

Thanks!
0
Comment
Question by:Cantona
2 Comments
 
LVL 4

Accepted Solution

by:
stamp earned 100 total points
ID: 1118011
Create a view in wich a column has this big formula:
@If(@Attachments;"[<!-- "+@AttachmentNames+" --><A REF=/"
+@Subset(@DbName;-1)+"/AllDocs/"
+@Text(@DocumentUniqueID)+"/$FILE/"+@AttachmentNames+">"
+@AttachmentNames+"   "+@Text(@AttachmentLengths) +" Bytes </A>]" ;
"[<!-- "+@AttachmentNames+" -->"+@AttachmentNames+"</h7>]")

Please note:
- You nead a view with sorted docids in the FIRST column, in example is this "AllDocs".
- HTML comments <!-- --> are only for sorting purpose in the upper string.
- Only for optics is the attachments lengths contained in the anchor name (get it out)
- </h7> is only because I had no better idea for closing pass trough breckets ].
- If you want, you can compute all this values on saving the attachments in the form.
When you precalculate the strings is your view faster built containing only var names

It works great. You click in the view on attachment name and get the attachment.
0
 

Author Comment

by:Cantona
ID: 1118012
Hi,

Actually your answer if not what I'm looking for...but however by looking at your codes, I'm able to figure out on my own. I guess my question is not clear enough. :)

ANyway thank alot. :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now