Hi,
I am trying to create a link from a web application to a Cognos report.
The report contains a prompt and the prompt value should be passed from the web application.
In the
IBM Knowledge Center I read that there are 2 ways to accomplish this:
- By building a custom URL
- By using HTTP POST
I succeeded by using the custom URL:
<a href="https://cognos.xyz.be/ibmcognos/bi/?objRef=iF87873B7C20F49F29AF6DD2BBD73A98E&format=HTML&prompt=false&p_p_inrichting=090178f580c1395d">Cognos report</a>
But the HTTP POST method isn't working:
<form method="POST" accept-charset="UTF-8" action="https://cognos.xyz.be/ibmcognos/bi/">
<input type="hidden" name="objRef" value="iF87873B7C20F49F29AF6DD2BBD73A98E" style="display:none" />
<input type="hidden" name="format" value="HTML" style="display:none" />
<input type="hidden" name="prompt" value="false" style="display:none" />
<input type="hidden" name="promptParameters" value="{'name':'p_inrichting','value':{'use':'090178f580c1395d'}}" style="display:none" />
<input type="submit" name="btn" value="Cognos report" />
</form>When I click the button, the report opens, but I arrive at the prompt page and the parameter isn't passed.
The parameter in my report is called "p_inrichting". I read that, when using the URL method, you have to add "p_" in front of the parameter name.
I also tried this with the HTTP POST method, but that isn't working.
Does anyone know what I am missing?
Thanks in advance for the help.
------------------------------
Daan Lambrechts
------------------------------
#CognosAnalyticswithWatson