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

listbox auto select

Started by cogmog, 03 Apr 2009 01:44:28 PM

Previous topic - Next topic

cogmog

I have the following code that auto selects a default value once the prompt page loads...however if I decide to pick something other than the default then hit the 'Reprompt' button, my form goes back to the original default and not my newly selected value.

Below is what my javascript looks like:

<script type="text/javascript">
function init()
{
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if (fW)
fW._oLstChoicescheck1.options[0].selected = true;
canSubmitPrompt();
}
init();
</script>

I need to add some extra code that handles if the value in the listbox changes and the reprompt button is selected to maintain the New value.