COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: everlearner on 09 Mar 2015 03:31:55 AM

Title: How to clear the selections of the prompts by Java script?
Post by: everlearner on 09 Mar 2015 03:31:55 AM
Hi Gurus,

I have Textbox, Select & search , date & value prompt ( check box group) on my prompt page,
i wanted to clear the selections when user clicks on back button.

can anybody tell me the Java script code to get that.


Thanks in adnavce.
Title: Re: How to clear the selections of the prompts by Java script?
Post by: pradeepbi25 on 09 Mar 2015 04:49:19 AM
Hi

I am using Refreshing prompts in few of my reports as below:

1. First drag a text item under all the prompts and type 'Refresh Prompts(or whatever you need).
2. Right click on the text item and select 'Drill through definitions'.
3. Add the same report in drill through, uncheck the option 'Open in new window' and don't pass any prompts.
4. Then the text will appear as a link and will open the report as a new report.

Thanks
Pradeep
Title: Re: How to clear the selections of the prompts by Java script?
Post by: everlearner on 09 Mar 2015 05:13:46 AM
Thanks for the reply, in my report i have 4 prompt pages, i wanted to go back to previous prompt page by clearing the selections on that page when user clicks on back. can we go to particular prompt page by drill thru?
Title: Re: How to clear the selections of the prompts by Java script?
Post by: pradeepbi25 on 09 Mar 2015 08:51:53 AM
No, drill through will start the report from first prompt page. I have no idea about any Javascript code.
Try, Reprompt button on the prompt page you need to clear the selections.