COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: amic1 on 12 Aug 2010 05:44:36 AM

Title: creating hyperlinks from a report to a website
Post by: amic1 on 12 Aug 2010 05:44:36 AM
Hi,

I'm trying to open a web page from a report.
meaning, by clicking on a data item that placed in a list I would like the website will open.
How can i do it? where should i place the URL, so it will work?

Thanks in Advance,
Ami
Title: Re: creating hyperlinks from a report to a website
Post by: nagababu on 20 Aug 2010 07:52:22 AM
you can do this following way,
1)take the hyperlink to the list
2)select the hyperlink
3)in the properties URL source in second uption URL put ur which website u want take the url copy here
4)then save and run.
Title: Re: creating hyperlinks from a report to a website
Post by: amic1 on 23 Aug 2010 03:01:22 AM
Thanx, it worked.
But do you know how can i make the website to be open in a new window?

Rgds
Amic
Title: Re: creating hyperlinks from a report to a website
Post by: rams143 on 09 Sep 2010 12:25:38 PM
Hi,

You can use HTML item instead of Hyperlink.

Drag and drop the HTML in to the list. And double click and insert the following script,

'<A href="URL"target="_blank">New Window< /A >'

Replace URL with your website URL and in place of New Window you can write any text that will appear as link on the report.

If you have the URL as a data item in the query then you can use this script instead.

'<A href="' + [Query].[link] + '" target="_new">TEXT< /A >'

Just make < /A > without spaces. I cannot do that because it is giving something like [/url].

Regards,

Rams.