This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jul 7, 2013, 2:56 PM
110 Posts
topic has been resolvedResolved

XPINC launch an attachment instead of downloading it

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 9.0
  • Role: Developer
  • Tags: xpinc client,attachment,file download
  • Replies: 2

Is there a way to launch (open without saving) an attachment through XPINC? Something like the popup in web browser that ask you whether to open the attachment using a program or just save it first. Or maybe there's some setting in the notes client that I've yet to found that will launch an attachment?

Jul 8, 2013, 9:10 PM
17 Posts
open attachments in xpinc

I had the same requirements in an application (nobody wants to download a simple PDF, search it again in the file browser and open it from there)

I used the form launch-property "launch first attachment" .. If there are 2 or more Attachments, create temporary documents (in a separate database), and remove them again scheduled (e.g. nightly..). There is also another approach: http://hasselba.ch/blog/?p=1045

Aug 18, 2013, 3:19 PM
110 Posts
Still not an ideal solution but worked on my platform

I found the old ShellExec.lss lotusscript library somewhere. What I did is get the attachment as NotesEmbeddedObject, extract it to the filesystem (C:\Temp for example), pass the file path/name using the agent.runWithDocumentContext() method to the ShellExec.lss to launch it.

At least it worked on my platform (Win7x64). I'm 100% sure it won't work on others though.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal