COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: simi on 16 Mar 2016 10:43:08 PM

Title: Javascript for the reprompt button
Post by: simi on 16 Mar 2016 10:43:08 PM
ALL,

I am using Cognos 10.2.2 report studio version. I have single select list box prompt. whenever user select the value from this lisbox then the prompt page should reload (reprompt function) . i dont want to use the autosubmit properties here.

Following is the code i tried. But its not working




'<script text="javascript">


var form= getFormWarpRequest();


var attached = form._oLstChoicesMyList.onClick= on_click;
if (!attached || attached == undefined) alert("onClick event was not attached.");


function on_click()
{
promptAction(''Reprompt'');
}
</script>'
Title: Re: Javascript for the reprompt button
Post by: BigChris on 17 Mar 2016 02:57:20 AM
Quotei dont want to use the autosubmit properties here
Why not? You sound like you're describing a cascading source which comes straight out of the box. Javascript will probably break and/or not be available in later releases...it should really be a last resort.