COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: borco on 30 Aug 2015 03:53:11 AM

Title: How to refresh the prompt page without losing the selected values
Post by: borco on 30 Aug 2015 03:53:11 AM
Hello,
I'm trying to refresh a prompt page without losing all the choices I've already made (kind of like what happens when hitting the search button on a select& search prompt). The solution I'm using now is to drill to the same report and pass all the parameters values. I'm searching for a more elegant solution. I'm pretty sure it can be solved with JS but I don't know how to do it.
Thanks a lot.
I'm using Cognos 10.2.1 :)
Title: Re: How to refresh the prompt page without losing the selected values
Post by: gavich6869 on 31 Aug 2015 02:37:49 AM
Hi,

This can be done by employing a javascript on the prompt page. You can use .getvalues() when the page loads, on the reprompt store the value and pass to the prompt control on the refresh. Donot use cognos finish function, instead use prompt.action on the javascript.

Thanks
gavich
www.cognos-explained.blogspot.com (http://www.cognos-explained.blogspot.com)