COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: kiran04 on 21 Aug 2011 10:31:27 PM

Title: Link to the External Website
Post by: kiran04 on 21 Aug 2011 10:31:27 PM
Hi Al,
I have a requirement where I need to link a column to external website i.e., fedex website, ups website and if not both I need not goto any of the links. , 1.Here I have three conditions.
1. the column may contain UPS Number or
2. it may contain Fedex or
3. it may contain none of the both numbers
So depending on the number(Column) .I need to link to that respective website.
Any suggestions on this one.
thanks,
KWAS04
Title: Re: Link to the External Website
Post by: Lynn on 22 Aug 2011 10:24:57 AM
You can create a query item that contains the URL and hyperlink markup, then use an HTML item to present it in your layout. If you need to produce PDF output you can use a Rich Text item instead of an HTML item (but use just the URL without the HTML anchor tags).

For HTML:

Presumably you can enhance the URL to go right to the tracking page and include the number, so hopefully this gives you the basic idea to get started.

case [YourFieldThatIndicatesTypeOfNumber]
when 'UPS' then '<A HREF=http://www.ups.com>UPS</A>'
when 'FEDEX' then '<A HREF=http://www.fedex.com>FedEx</A>'
else 'No Link Available'
end
Title: Re: Link to the External Website
Post by: kiran04 on 29 Aug 2011 09:06:59 AM
Thank you so much Lynn....your procedure of linking to external website is really helped me.., it worked for me.

Thanks
KWAS04