I have set up a hyperlink to a product code that goes to an outside URL. The URL is working fine, but I need it to open in another window. Right now it opens in the same window. Any help? The hyperlink is set up with a Text Source type as Data Item Value pointing to the product code, and the URL source type is a data item value pointing to a data item I set up with the URL of 'http://webapp/scripts/cgiip.exe/dh.w?Request=GetProdInfo&Params=' || [Model No.].
Unfortunately Cognos doesn't have a property for this feature (boggles my mind). You have to use an HTML item instead using the following syntax:
'<a href=''http://webapp/scripts/cgiip.exe/dh.w?Request=GetProdInfo&Params=' + [Model No.] + ''' target=_blank> Replace Link Text Here </a>'
Of course you'll need to change the text source to Report Expression.
It should work, as Jay has suggested.
Another recommendation is to implement the URL in framework manager (FM), so that any changes to the URL, in the future, can be changed in FM, instead of changing it in multiple reports.
This is how I have implemented it, in bus.layer:
I have two calculations, in addition to the product code-object.
[URL]
'http://URL/Details?CaseId='
[SITE]
'<a href=' + [URL] + [PRODUCT_CODE] + ' target="_new">SITE_NAME </a>'