COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: DSR on 07 Mar 2013 11:55:25 AM

Title: Auto refreshing a report for certain time
Post by: DSR on 07 Mar 2013 11:55:25 AM
Hello Guru's,

I am using Cognos 10.1, In Report Studio I have one required Value Prompt on a prompt page. First time when user runs the report user will select value and click on the finish button which will execute the report. From that time let say every 5 minutes report should refresh for the selected value and prompt page should not appear. Whenever user wants to select another value there will be a button or link in output page which takes to the prompt page.

Please throw me some ideas, I was thinking about Java Script and etc.

Thanks in Advance.

Regards,
DSR
Title: Re: Auto refreshing a report for certain time
Post by: RKMI on 07 Mar 2013 01:23:30 PM
Hi,

Did you see this post by Paul, http://www.cognoise.com/index.php/topic,10856.0.html

It uses JS.

Thanks,
RK
Title: Re: Auto refreshing a report for certain time
Post by: DSR on 07 Mar 2013 01:47:23 PM
Thanks for reply.

The above script works without a prompt page in report. As I explained if there is prompt and if prompt is selected report should not show prompt page again, it should refresh for every 5 minutes. I want to check the condition of the prompt in javascript before it executes and refreshes. If prompt does not have value then prompt page should appear. if prompt is having some value, report should refresh with the selected value in the prompt without displaying the prompt page.

Hope you got my requirement.

Regards,
DSR
Title: Re: Auto refreshing a report for certain time
Post by: Rahul Ganguli on 11 Mar 2013 01:49:23 AM
Hi,

You can still perform this using JavaScript.
You need to get the promt value in a variable and append it on the report url, also you have to append &prompt=false in url.
This way the report will run again without prompting for the same selection.

Regards,
Rahul
Title: Re: Auto refreshing a report for certain time
Post by: DSR on 15 Mar 2013 07:00:19 AM
Thanks for helping me. Issue got resolved. Used regular report refresh java script and unchecked prompt for values check box in cognos connection report properties. This will prompt prompt page first time and next time onwards report will not display prompt page.