Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

Launching an attachment via browser - URGENT

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
Cantona
Asked:
Cantona
1 Solution
 
stampCommented:
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
 
CantonaAuthor Commented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now