COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: fhouser on 27 Apr 2015 09:29:05 AM

Title: URL Passing Report Parameter w/ Special Character in URL
Post by: fhouser on 27 Apr 2015 09:29:05 AM
Hi Cognoise,

I have a requirement to have reports called from a webportal via the reports URL.

For reports with a single, numeric parameter, the URL is working perfectly

However, when I try to pass a URL which contains a ':', the URL is bombing. I am trying to pass May 21st, which is formatted in the report to be 'May : 21'

Passing the first parameter, 2008, is working no problem. However when I add the 2nd parameter, I am getting issues

Here is an example of what I need to pass

...run.outputFormat=&run.prompt=false&Parameter1=2008&Parameter2=May : 21

Thank you!
Title: Re: URL Passing Report Parameter w/ Special Character in URL
Post by: schrotty on 27 Apr 2015 09:40:09 AM
Hi fhouser,

some characters in the URL are reserved. You have to encode these characters, so you can pass them via URL.

http://www.w3schools.com/tags/ref_urlencode.asp (http://www.w3schools.com/tags/ref_urlencode.asp)
Title: Re: URL Passing Report Parameter w/ Special Character in URL
Post by: fhouser on 27 Apr 2015 09:43:03 AM
Thanks for the quick response!

Let me try that and get back to you!