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



Mar 28, 2011, 6:42 PM
14 Posts
topic has been resolvedResolved

custom links in view control column to open the document

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
I am trying to create a link column in a view control to open the document using the form. I know how to do this in a repeat control, but am having trouble with  a view control. If I set one of the columns to display as a link, it uses the url to open an xpage and I want it to open the document with the form instead.
 
here is how i accomplish it with a repeat control, but can't seem to figure out how to achieve the same thing with the view control.

"/0/" + rowData.getUniversalID()+ "?openDocument"

 

Any help would be greatly appreciated.

 
Mar 28, 2011, 6:54 PM
14 Posts
figured it out for a flat view

 Using a view control, mark the var property with something like rowData
 Then in your column, for the Data section, set it to a computed value with something like this. I have a field called refnum which I want to appear in the column as a link to open the document. I also have a field called docID which stores the UNID of the document which I use to build the link.
 
I can't seem to get this to work in a categorized view at all. 
 

var refnum = rowData.getDocument().getItemValueString('refnum')

var unid = rowData.getDocument().getItemValueString('docID');

var url = "0/" + unid + "?opendocument"

return "<a href='" + url + "'>" + refnum + "</a>"

 

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