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



Jan 12, 2012, 10:04 PM
17 Posts

Column links to open a document?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 3
 I created a view control, dragged all the columns I wanted from the Data source, formatted it nicely. 
 
I made one column's Display "Show values in this column as links".
If I hard code a URL in the "pageURL" property for that column, it opens that URL.
How do I make those links open the document from which they display data?
Those documents were created with a regular form.
 
 
Sorry, I'm looking carefully through everything posted here, but I'm not understanding how to do what would seem to be the most basic thing.
Jan 12, 2012, 10:22 PM
586 Posts
Re: Column links to open a document?
 I haven't done that in a long time as I prefer the flexability of repeat controls.  But all you should need to do is:
 
1. turn on for the column to highlight as links 
2. set the xpage to the form.  Possibly you forgot that step. 
 
In the Infobox of the Form design element - I think on the second tab as an area to associate the form to an xpage.  you need to check that so Xpages knows what to do with the documents from your view.  Since you could have multiple document types in that view.  Another thing you could do is on the view control there's the ability to set the xpage at that level, but the form is preferred so you don't need to do it for each view control. 
 
I THINK I might have covered this on my XPages Jumpstart video from my notesIn9 screencast.  You can find the jumpstart easily at XPages.TV. 
 
Hope that helps.  If not let me know.
 
Dave 
Jan 12, 2012, 11:23 PM
17 Posts
Re: Column links to open a document?
Thanks for your help. That makes sense.
 
Now, it shows the link target as  "path/abc.nsf/%24%24OpenDominoDocument.xsp?documentId=D686E9F2052590808525797D00450CA3&action=editDocument , but when I click the link nothing happens?
 
 Oh, wait. Does there need to be an Xpage to display the contents of my document that was created with the form?
If so, that seems like a lot more work. Do I need to just forget all about the FORM, and just do the entire thing in XPages? I'm not ready, and this application was 95% done. I was just trying to display the data in a better way. 
Jan 13, 2012, 2:44 PM
298 Posts
Use the onclick event of the column
You can use the onclick event of the column to create client side script to set the url to the form. You will have to build the url in the format of /database/0/docid/?Openform. Of course, your form will need navigation back to the XPage with the view. Probably best to build the XPage to show the document but you don't have to. Howard

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