Showing posts with label autosubmit cognos prompt page. Show all posts
Showing posts with label autosubmit cognos prompt page. Show all posts

Saturday, June 7, 2014

Autosubmit Cognos prompt page using java script

Take HTML to prompt page and paste the following code

<script type="text/javascript">

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

if (fW)
{
  // if the report is running from reportStudio or the Portal objects are different
  if (fW.elements["cv.id"].value == "RS")
  {
     setTimeout('oCVRS.promptAction(\'next\')', 1000);
  }else{
    setTimeout('oCV_NS_.promptAction(\'next\')', 1000);
  }
}
</script>