COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sujitgouda on 27 Jun 2014 01:50:38 PM

Title: Javascript and Finish Button
Post by: sujitgouda on 27 Jun 2014 01:50:38 PM
Hi,

When I unfilter my prompts on the report studio, and click on finish button. I am not getting the desired result or the default report studio output page.

As soon as I unfilter, all of my prompts gets unfiltered and on click on finish I get a blank page.

I want my report to retain the value of the parameter "p_time_period" to default it to "Daily" when I click on finish.

I have a created an unfilter button with below javascript.
<script>
function reset()
{
document.formWarpRequest._oLstChoicesp_subchannel.selectedIndex = -1;
document.formWarpRequest._oLstChoicesp_territory.selectedIndex = -1;
document.formWarpRequest._oLstChoicesp_vehicle.selectedIndex = -1;
document.formWarpRequest._oLstChoicesp_startegy.selectedIndex = -1;
document.formWarpRequest._oLstChoicesp_firmname.selectedIndex = -1;
document.formWarpRequest._oLstChoicesp_time_period.selectedIndex = 1;
}
</script>
<a href="#" class="bt" style="text-decoration: none" onClick="reset();">Unfilter