COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sandy_vitty on 30 Mar 2010 01:59:34 PM

Title: Passing the login credentials to pop window
Post by: sandy_vitty on 30 Mar 2010 01:59:34 PM
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.
Title: Re: Passing the login credentials to pop window
Post by: CognosPaul on 31 Mar 2010 12:03:46 AM
Try changing the url from an absolute to a dynamic one.

I think

var src = "../cgi-bin/cognos.cgi"; should work.
Title: Re: Passing the login credentials to pop window
Post by: sandy_vitty on 01 Apr 2010 10:32:44 AM
Hi Paul,

              Thanks a bunch. Works like a charm. Appreciate the help. Thanks again.