If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Javascript for the reprompt button

Started by simi, 16 Mar 2016 10:43:08 PM

Previous topic - Next topic

simi

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>'

BigChris

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.