Hello,
Can some one help me out ..... My requirement is to dynamically display the first item in the value prompt and to run that parameter. I am using Cognos 8.3.
I tried using the following script, with this I am able to display the first item but its not taking that parameter.. instead its taking the whole data.
<script type="text/javascript">
function init()
{
if
(document.formWarpRequest._oLstChoicesPeriode.options[3].selected == false)
{
if
(document.formWarpRequest._oLstChoicesPeriode.options[2].selected == false)
{
document.formWarpRequest._oLstChoicesPeriode.options[2].selected = true;
listBoxPeriode.autoSubmit();
}
}
}
</script>
<body onLoad=init()>
Thanks....
Can some one help me out ..... My requirement is to dynamically display the first item in the value prompt and to run that parameter. I am using Cognos 8.3.
I tried using the following script, with this I am able to display the first item but its not taking that parameter.. instead its taking the whole data.
<script type="text/javascript">
function init()
{
if
(document.formWarpRequest._oLstChoicesPeriode.options[3].selected == false)
{
if
(document.formWarpRequest._oLstChoicesPeriode.options[2].selected == false)
{
document.formWarpRequest._oLstChoicesPeriode.options[2].selected = true;
listBoxPeriode.autoSubmit();
}
}
}
</script>
<body onLoad=init()>
Thanks....