Solved

Launching an attachment via browser - URGENT

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DAOS - Backup / Restore 2 188
Bulk lotus notes account creation 3 82
Lotus Notes – Domino Document Manager 4 113
IBM Lotus Notes Rules not working 5 165
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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