COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: cognos_developer on 19 Jul 2011 07:30:55 AM

Title: Value prompt auto submit using javascript
Post by: cognos_developer on 19 Jul 2011 07:30:55 AM
Hello Friends,

I have a Report with 2 value prompt 1.Start Period 2.End Period
My requirement is to make 1st value in start period as default selection , I am doing that using javascript. End period prompt is dependent upon(cascaded prompt) .
When start period prompt selects 1st value by default End period should have corresponding value but it is no showing any value . I did auto submit for Start prompt as yes but that is not working.
If any one has any suggestion that will be very helpful.
Thanks
Title: Re: Value prompt auto submit using javascript
Post by: Arsenal on 19 Jul 2011 09:31:48 AM
hardly a JS expert here but sounds like you may have missed putting in code to do a page refresh once the JS sets the default value on the start prompt. Something like SetPromptControl('reprompt') towards the end of your JS that sets the default value might work