SSRS - Auto Advance to either another report or another page

I'm on SQL 2012 using SSRS
I created reports using report builder 3.0

I have the need in my facility to expect SSRS to automatically advance after n seconds to the next page of my report.  Or, I would like it to move to another report and continue to loop through this.

I understand SSRS does not do that natively.  I really wish it did because we have 60" TV's we use as dashboards and it would be great to automatically advance through a multi page report.

So, what can I use to do this?  If you can provide either an example or a website that can help explain how to, I would greatly appreciate it.
BruceLawrenceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prequel_serverCommented:
I've set something up like this before for a client. They wanted to show an SSRS report in full screen on a wall-mount and have it refresh automatically, as well toggle through different reports. I used firefox browser and plugins.

here's an example.

https://addons.mozilla.org/en-us/firefox/addon/tab-rotator/
https://addons.mozilla.org/en-US/firefox/addon/reloadevery/

You can maximize FF to full screen and it looks relatively clean but you have to fiddle with resolution and the SSRS report itself to make it fit the screen properly.  

SSRS is not a good dashboarding solution imo but it can be used that way if you must.

note1: Regarding auto refresh, there is way to do this in the SSRS report itself however this didn't work for me very well and I  ended up using the plugin for a full page refresh.

note2: I'm a big Chrome lover but unfortunately it doesn't work well with SSRS, eg. calendars controls don't work, so firefox is the best for this imo and I would not attempt to use IE add-ins.

good luck, and let me know if you need more help.
0
ValentinoVBI ConsultantCommented:
With a trick it is possible to use the AutoRefresh report property for this.  In short: you can keep track of a counter in a table and use this counter to decide what needs to get shown.  It's not really an "advance to next page" thing but more like "if count = 1 then show data 1 else if count = 2 then show data 2" and so on, so you can use the counter to show different things.  Subreports or using the Hidden property to show/hide certain parts are an option too.

Here's how you can implement a really basic version of this system.  First you need to set up a table in a database somewhere:

CREATE TABLE dbo.ReportRefresh(
	RefreshCounter int NULL
) ON PRIMARY;

insert into dbo.ReportRefresh select 0;

Open in new window

Then in the dataset that returns your data you need the following code:

declare @maxCount int = 12;
declare @currentCount int = (select ISNULL(RefreshCounter, 0) from dbo.ReportRefresh);
declare @nextCount int = (select (@currentCount % @maxCount)+1);

update dbo.ReportRefresh set RefreshCounter = @nextCount;

select @nextCount Cnt;

Open in new window


This code limits the counter to 12 and will switch back to 1 once 12 has been reached.

Depending on how you decide to implement this system you may want to replace the SELECT statement with one that actually returns your data, possibly in combination with IF or CASE statements.  Or you can just return the count value and work with that in the report itself.  Or a combination of both :)

Please note that in BIDS preview it will seem as if this system doesn't work.  That's because BIDS uses cached data files. Once the report is deployed to the server it will reload the dataset on each AutoRefresh action.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BruceLawrenceAuthor Commented:
Thanks for the feedback.  Both solutions pushed me toward a different one but the second was more in line with what I came up with.

I ended up using an HTML page that basically cycled through a few hyperlinks.  Here is the site I got it from:
http://forums.devshed.com/javascript-development-115/cycle-web-pages-618095.html

This code works great
<html>
      <head>

<script type="text/javascript">
var pages = [
"http://www.google.com",
"http://www.msdn.com",
"http://www.bbc.co.uk",
"www.yahoo.com"
];
var currentIndex = -1;
function startCycle() {
    var iframe = document.getElementById("iframe1");
    currentIndex = (++currentIndex) % pages.length;
    iframe.onload = function() {
        window.setTimeout(50, startCycle); //Currently set to change every 5 seconds
    }
    iframe.src = pages[currentIndex];
}
window.onload = startCycle;</script>
      </head>
      <body>
            <iframe  id="iframe1"  frameborder="0"  vspace="0"  hspace="0"  marginwidth="0"  marginheight="0"
                  width="900"  scrolling="no"  height="900">
            </iframe>
      </body>
</html>
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.