I'm trying to use &ui.backURL parameter in order to run another report when canceling running report but with no success.
I wrote the below JS:
window.location.assign("http://"+window.location.host+"/ibmcognos/cgi-bin/cognos.cgi?b_action=cognosViewer&ui.action=run&ui.object=%2fcontent%2ffolder%5b%40name%3d%27Radcom%27%5d%2ffolder%5b%40name%3d%27Applications%27%5d%2ffolder%5b%40name%3d%27QCell%27%5d%2freport%5b%40name%3d%271.Cell%20QoE%20Over%20Time%27%5d&ui.name=1.Cell%20QoE%20Over%20Time&run.outputFormat=&run.prompt=true
&ui.backURL=%2fibmcognos%2fcgi-bin%2fcognos.cgi%3fb_action%3dxts.run%26m%3dportal%2fcc.xts%26m_folder%3di0196A4BAB6CF4ED3BEF6B0FEB0BDFB17");
and i was redirected to the Cognos connection of this report but didn't run the report
with the given id in the URL.
(http://i60.tinypic.com/2cxgsaf.png)
The marked in Yellow is the name of the report but from some reason Cognos tried to open it as folder and not run the report...
please assist,
Thanks In Advace,
Shachar.
Replacing the backURL expression to:
&ui.backURL=%2fcontent%2ffolder%5b%40name%3d%27Radcom%27%5d%2ffolder%5b%40name%3d%27Home%20Page%27%5d%2freport%5b%40name%3d%27Radcom%20Welcome%20Page%27%5d
Results with browser URL:
http://10.223.244.170:8081/content/folder[@name='Radcom']/folder[@name='Home%20Page']/report[@name='Radcom%20Welcome%20Page']
Why did it partially decode the URL ?