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 10, 2012, 7:14 AM
2 Posts

Open File from view column link in Filesystem (net share)

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags: filesystem,column,file,open,link
  • Replies: 1
Hi
I want to open a file directly from a view column link. The filepath is saved in the document. 
I tried with pageurl property and with a html column like: "a href=...".
Both show as links but nothing happens or I get an error page.
 
Path is like \\ourdomain.local\ourdfs\folder\subfolder\sample.doc, 
I also tested with c:\temp\test.txt with file:///..., with  c:/temp/test.txt  without success.
 
May be it's simple but I have no idea
 
please help
Heinrich
Jul 10, 2012, 8:06 AM
43 Posts
Re: Open File from view column link in Filesystem (net share)
 Do you want to access a file on your local machine?
I don't know whether that is the right way to do it. However, if the file path/file is in your document/database you can use something like this. I used the Xpage "link" element itself but still href should work.
 
<xp:viewColumn columnName="$92" id="viewColumn10" value="">

<xp:link escape="true" id="link1">
<xp:this.text><![CDATA[#{javascript:viewEntry.getColumnValue("$92");}]]></xp:this.text>
<xp:eventHandler event="onclick"
submit="false">
<xp:this.script><![CDATA[var docid='#{javascript:viewEntry.getColumnValue("$96")}';

var link="";
var typ='#{javascript:viewEntry.getColumnValue("aTyp")}';
link='xx_openPage.xsp?aTyp='+typ+'&action=openDocument&documentId='+docid;
window.open(link,'New','width=1000, height=650, left=250px, top=250px, menubar=no, resizable=0, scrollbars=yes');

]]></xp:this.script>
</xp:eventHandler>
</xp:link>

<xp:viewColumnHeader value="Titel"
id="viewColumnHeader10" sortable="true">
</xp:viewColumnHeader>
</xp:viewColumn>
 
You can mention your link instead of blue text.
Hope this helps. 
 
Regards, 
CHINTAN P. 

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