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.
In default, try setting it to 'Max' or 'Max Month'.
If you are using earlier versions, there are javascript available to auto select values.
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.
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..
which version of Cognos are you using?
I have got this working with a java script in RS84 version