Hi
I am using cognos 8.4. One of my requirement says that i need to open a popup window to show more details of a column. Inside the popup window i am just calling another report studio report which run when ever the link in mail report clicked. For this i have written some javascript code to open the details in small pop up window.
<script language=javascript>
function showDetail()
{
//Create a URL
var src = "http://localhost:80/cognos8/cgi-bin/cognos.cgi";
src += "?b_action=xts.run";
src += "&m=portal/launch.xts";
src +="&ui.tool=CognosViewer";
src += "&ui.action=run";
src += "&cv.toolbarúlse";
src += "&cv.headerúlse";
src += "&ui.object=%2fcontent%2ffolder%5b%40name%3d%27Wor k%20Folder%27%5d%2freport%5b%40name%3d%27DG009%20t est2%27%5d";
src += "&run.promptúlse";
src += "&p_prompt=";
src += escape(sprompt);
window.open(src,'Details','widthP0,height 0,resizable=1');
}
</script>
he issue is the pop up window asks for login credentials again. I need to be able to able to pass the cam passport credentials also to the pop up window.
Can someone help me as to how to pass the login credentials through URL.
Try changing the url from an absolute to a dynamic one.
I think
var src = "../cgi-bin/cognos.cgi";
should work.
Hi Paul,
Thanks a bunch. Works like a charm. Appreciate the help. Thanks again.