COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: fshahul on 17 Nov 2011 11:02:55 AM

Title: Clicked Hyperlink need to be open in a new window
Post by: fshahul on 17 Nov 2011 11:02:55 AM
Hi,
We have a Cognos 10.1 report were in hyperlinks have been added. When the report is run and the hyperlinks are clicked its taking to the concerned website but in the same window. Is there any possibility to get it opened in a new window.

Thanks
Title: Re: Clicked Hyperlink need to be open in a new window
Post by: MFGF on 17 Nov 2011 11:09:52 AM
One option is to replace the hyperlink object with a text item, then drop html items before and after the text item to convert it to a hyperlink on the page.  In the preceding html item, use this code:

<a href="your hyperlink URL" target="_blank">

and in the following html item, use this code:
</a>

Obviously this will only work on pages rendered as HTML.

Regards,

MF.