Welcome to the new CogKnowHow.com!

If you have trouble logging in, reset your password via the login window
by clicking the 'Forgot Password' link.

Javascript doesn't work in portal page after upgrade to Cognos 10.2

I have a couple of reports with a small piece of javascript on the prompt page to autoselect prompt values and autosubmit the report. The javascript automatically selects the first value in prompt objects and submits the report by clicking on the ‘Finish’ butten. The script is working fine when running the report from Report Studio or Cognos Connection. But when the report is part of a multi-page portal tab the javascript doesn’t seem te work.

Do i have to use the prompt api functions to achieve this? If so can anybody provide me with an example? I’m not a javascript hero, so any help would be appreciated?



Y have experimented some troubles with Java script too, mainly produced by identificator changes in reports when displayed in different places. If you can send your code and explain a bit its functionality, maybe we can help you.

Hallo Steven, i am facing almost the same problem. But my report runs only in Out of Report studio if i try to start it from Cognos Portal it doesnt work. Could you solve your problem?

I am using following code:

<script type="text/javascript"> 

//get the form request 
var fx = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]); 

if (fx) 

  if (fx.elements["cv.id"].value == "RS") 
     setTimeout('oCVRS.promptAction(\'finish\')', 10); 
    setTimeout('oCV_NS_.promptAction(\'finish\')', 10); 

Kind regards