Aug 26, 2015, 12:11 PM
66 Posts

launching attachments from an xPages view

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2

I have a view in an xPage that includes a column that users can click on to launch the attachment in the underlying document.  That works great, thanks David Leedy for the article!

But not all my documents have attachments.  In fact, I only want to display the "Launch" link text in that view column when the form is a "reference" form.  The view column looks like the following - how can I display nothing in this column if it's not a reference form?

<xp:viewColumn id="viewColumn6" columnName="$128" displayAs="hidden">

<xp:link id="linkAttach" text="Launch Attachment" target="_blank">


Aug 26, 2015, 1:05 PM
66 Posts
got it!

I just made the text value computed with an If statement, and it works just as I want it to! 

<xp:link it="linkAttach" target="_blank">


<xp:this.text><![CDATA[#{javascript:if(myVar.getColumnValue("$129")!=""){"Launch Attachment"}}]]><xp:this.text>

Aug 26, 2015, 2:48 PM
589 Posts

I've no idea what article you're referring to but if I was of help and glad I was!


Thanks for coming back to also post you're solution!

Dave Leedy