Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To Dynamically select first item in a value prompt

Status
Not open for further replies.

hrk551

Programmer
Mar 11, 2009
2
US
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....
 
....Cont.

I am NOT using any prompt page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top