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



Feb 27, 2012, 3:21 PM
51 Posts

open computed pageUrl in new window

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 5
 I have a view with computed pageUrl's.
When clicking on a link , the link opens in the same window. 
What do I have to do in order to open the links in a new page ? 
Feb 27, 2012, 3:50 PM
14 Posts
Re: open computed pageUrl in new window
If you use the link core control (xp:link), go into the properties tab of the link, then All properties->basics->target.
 
Or in the source add the parameter target="whateveryouwant" in you xp:link tag.
 
Use _blank if you want to open each time in a new window. 
 
Hope this helps 

Renaud 
Feb 27, 2012, 4:07 PM
51 Posts
Re: open computed pageUrl in new window
 I'm not using a link control but a view control with links.
 
Feb 27, 2012, 4:41 PM
38 Posts
Re: open computed pageUrl in new window
 at target="_blank" to your link html
Feb 28, 2012, 7:38 AM
51 Posts
Re: open computed pageUrl in new window
 I guess I dont understand what to do.
I have a view.  
One column has been marked as link. 
I'm calculating the pageurl  and I get "https:myserver.com/test.nsf/ O/id/$FILE/filename"
How and where do I add target="_blank" ? 
It doesn't seem to work when I put this in front , or behind this url. (how do I add the " in my url ?) 
Feb 28, 2012, 2:30 PM
298 Posts
Compute the html for the view
Change the view column to display HTML and then write SSJS to build an anchor link tag which can have the target setting. 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