Solved

Launching an attachment via browser - URGENT

Posted on 1999-01-28
2
159 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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