COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: dwsudheer on 14 Feb 2012 08:46:38 AM

Title: How to clear prompt values when the report is rerun
Post by: dwsudheer on 14 Feb 2012 08:46:38 AM
Hi,

How to clear prompt values when the report is rerun.

I have a 2 prompt pages.When i rerun the prompt pagesneed to clear the prompt values in 2nd prompt page.
Please advise how to achieve this.


Thanks
Title: Re: How to clear prompt(Tree Prompt) values when the report is rerun
Post by: dwsudheer on 14 Feb 2012 10:58:57 PM
Guys anybody can u assist me on this.
Title: Re: How to clear prompt values when the report is rerun
Post by: HalfBloodPrince on 14 Feb 2012 11:21:29 PM
Hi,

Select ur prompt-set name of the prompt in properties ans UNIT then add a HTML element aft the prompt then  add this code  in HTML.

<script type="text/javascript">
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
fW._oLstChoicesUNIT.selectedIndex = -1;
</script>

Only thing is that name u give to  ur prompt replace that with unit.
Try this and let me know.
Title: Re: How to clear prompt values when the report is rerun
Post by: sreejithhk on 17 Feb 2012 06:23:58 AM
Hi,

We have a option in report studio (Cognos 8.4.1)

Go to File ->Clear Parameter values

I think this will help up!!