Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Launching an attachment via browser - URGENT

Posted on 1999-01-28
2
Medium Priority
?
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
stamp earned 300 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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