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

Default dynamic prompt value

Started by sfirebaugh, 01 Jul 2009 11:35:47 AM

Previous topic - Next topic

sfirebaugh

Hello,

I have a month prompt that I would like set with the MAX month value by default.  Right now, the report is set with a prompt value manually in Cognos Connection.  I would this to be automated so that the MAX month is selected automatically, but the user is still able to change the prompt value to something else.

Thanks in advance.

DustPanMan

In default, try setting it to 'Max' or 'Max Month'. 
Best,

D

Suraj

If you are using earlier versions, there are javascript available to auto select values.

Gopinath

Sort your month prompt in descending order, and place a HTML item next to the prompt. Copy paste the following code in the HTML item

<script>
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);

fW._oLstChoicesprompt_name.selectedIndex = 2;

</script>

prompt_name refers name of the prompt.

icepick

I tried the java script but it doesnt work for me..
It's an interesting idea however.. I would like to know if anyone else got it working..

Gopinath

which version of Cognos are you using?

UseCog

#6
I have got this working with a java script in RS84 version