COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: ian.hawksey on 27 Mar 2012 04:56:34 AM

Title: How to set up link to run javascript
Post by: ian.hawksey on 27 Mar 2012 04:56:34 AM
Hi Guys

Running 10.1 Report Studio on Win2008 & IE8

I need to create a link in a list report, which will call a page to display more info for the invoice number in the list row. I have been given the data I need in a db column:

javascript:void(window.open('http://tisukcpsql01/reportServer?/M5Pilot/case_detail&rs:Command=Render&request_id=FF918118&schema_id=tft&rc:Parameters=false','_blank','scrollbars=auto, resizable=yes, status=no'))

where request_id=FF918118 is the invoice for that line.

My question: how do I build a column so that the user can click the column and invoke the page for the given invoice, using the javascript above?

Thanks in advance

Ian
Title: Re: How to set up link to run javascript
Post by: pricter on 28 Mar 2012 05:35:46 AM
Create a list. Unlock the column and place
html items to construct the desire html
Title: Re: How to set up link to run javascript
Post by: ian.hawksey on 02 Apr 2012 03:13:31 AM
Pricter. Thanks for the reply.

Turns out use of a hyperlink was sufficient - the problem lay in the SSRS report security behind the javascript

Cheers

Ian