COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Connection, Viewer, Scheduler => Topic started by: vikramalvaj on 07 Dec 2016 12:52:32 AM

Title: Passing Data Source Connection value through URL in Cognos 10.x
Post by: vikramalvaj on 07 Dec 2016 12:52:32 AM
I have a data source with multiple connections.I need to pass Data source connection as a parameter in the URL to select the connection at run time. Currently I get a prompt page for choosing the connection value. I don't want the prompt page to appear, Instead it should take the connection value from URL and continue running the report. My current connection format as below.

http://cognos.server/cognos/cgi-bin/cognos.cgi?b_action=cognosViewer&
ui.action=run&ui.object=ui_object&p_credential:dataSourcename:password=<credential><dataSourceConnection>CAMID(":")/dataSource[@name='datasourcename']/dataSourceConnection[@name='datasourceconnectionname']</dataSourceConnection><dataSourceSignon/><username>xxxx</username><password>yyy</password></credential>&run.outputFormat=&run.prompt=false
Title: Re: Passing Data Source Connection value through URL in Cognos 10.x
Post by: bswenson on 10 Feb 2017 04:30:38 PM
I need to do the exact same thing.  Did you find a way to do this?

Thanks!