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



Dec 3, 2012, 12:48 AM
24 Posts
topic has been resolvedResolved

Problem with display a Document over Link

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 5
Hello,
 
i am trying to send an email with a Link to a Document, I am using "ritm2.appendText(doc2.getHttpURL());" to get the link.
The Link i receive is: "http://fre-au-sy-a01.sydney.australia.fresenius.de/__CA257A760013AC09.nsf/0/6273024EFAAF025ECA257ABD000BE717?OpenDocument".
When i open the link the Browser only displays the Values of the Fields. And No Labels or Tables, and it ignores the .Css files.
I want the Browser to display the Fields on a X Page.
 
Anybody a clue why this dosen't work?
Thanks
 
  
Dec 3, 2012, 5:30 AM
366 Posts
Re: Problem with display a Document over Link
 You have the wrong URL signature.
 
You are getting the document from the "0" internal view and simply opening a document. 
 
You need to use the following url structure 
 
http://host/NSF/xpagename.xsp??documentId=19381C380ED54DC9862577BF005B0CF5&action=openDocument  
 
Example 
 
http://localhost/XPBCDemo.nsf/PersonFormXPage.xsp?documentId=19381C380ED54DC9862577BF005B0CF5&action=openDocument 
 

Dec 3, 2012, 11:08 PM
24 Posts
Re: Problem with display a Document over Link
Is there a command to get the correct link?
Dec 4, 2012, 5:24 AM
366 Posts
Re: Problem with display a Document over Link
 You have to build it programmatically
 
Get the host name from the XSP URL SSJS library and combine it with something like this 
 
var linkVal = "<a href='"+hostnamevariable+"PersonFormXPage.xsp?documentId=" + docUnid +"&amp;action=openDocument'>link</a>" 
Dec 5, 2012, 12:00 AM
24 Posts
Re: Problem with display a Document over Link
Hi, it works now.
 
I used a little more static version but it is okay. 
 
Thanks for your help
Dec 5, 2012, 5:25 AM
366 Posts
Re: Problem with display a Document over Link
 You are very welcome.  Glad it's working

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