SSRS Report in CRM 4 IFrame not updating - reporting-services

I am using CRM 4 and have uploaded an ssrs report into the reports area. I published this for external use and in one of the entites have an iFrame that points to this published report.
This all works well, the problem is that if I update some of the info that the report is looking at and refresh the page the report doesn't update.
In fact I need to close the browser and re-open it of the report to refresh. This only happens in the iFrame, if I re-run the report in the reports section it updates correctly.
I assume this is because the info is cached somewhere. Does anybody know if there is a way to force CRM/SSRS to get the info afresh every time?
Thanks,
Neil

You need to add an additional parameter to the end of the URL used as the IFRAME source
&rs:ClearSession=true
This forces a refresh of the report each time it is accessed.

Related

SSRS Show Toolbar on drill down sub report

I have a dashboard SSRS report in embedded in another web app.
In this report there are drill down reports(too many).
By default I set rc:stylesheet=hideToolbar for this main report. So the toolbar is hidden.
Now we want to show the Toolbar on specific drill down reports(not all of them).
Is there a way to do this?
I have tried to create a new stylesheet but as I'm not able to change rc:stylesheet parameter when I'm calling the drilldown report it doesn't work.
I understand what you are trying to do and know that this is achievable through custom stylesheets as well alternatively via a custom SSRS Toolbar UI (via old 2005/2010 mgmt and Execution SOAP SSRS APIs*).
But that may be way overkill for your situation.
My best suggestion with the current out-of-box behavior of SSRS as of MSSQL 2019 (applies to 2016 as well) would be to create a custom link or imageLink inside those subreports that you want to have an SSRS Toolbar for which then either pops up a small new browser window above the main report (or on a new tab) with the subreport- and per default SSRS behavior the toolbar will be there, or, if you want to be explicit you can add the SSRS qs param "&rc:Toolbar=true" to that link.
I have actually used both approaches on projects. It really depends on the requirements, priority and time ya know?
Let me know if I can try to further help in any way if anything I shared was useful.
*here is a similar solution to your kind of problem (the SSRS REST API v1 and v2 can do many things but not as much as the old SOAP APIs could): How to export SSRS 2017 report using REST API

Auto Refresh on Google Data Studio using Google Apps Script

I have connected a Data Studio report to our internal SQL data source and I've been searching for a way to auto refresh the report at certain intervals.
The only thing I found so far is the plugin called Data Studio Auto Refresh, which is not working.
Is there anyway to set up auto refresh on my Data Studio report using Google Apps Script?
The datastudio report is being projected to a large monitor in our office that's why I am trying any ways to auto refresh the report.
So since the report is being projected to our office monitor, as a workaround I tried creating a script and placing it to the developer tool console that will auto refresh the report at a chosen interval.
function refreshCases(){
$(".refreshIcon").click();
setTimeout(function(){
refreshCases();
},60000)
}
refreshCases();
Currently, there is no native / Apps Script based method to auto refresh an opened Data Studio report page.
You can vote for this feature at the official feature request tracker.
You can set data freshness for a data source when adding a new source.
You must be an editor of the data source to change this setting.
You can do this from within a report, or from the Data Sources home
page.
At the top, click Data freshness.
Under "Check for fresh data," select a new refresh option, if available.
Click SET DATA FRESHNESS.
You can set a different period of refresh depending on the source.
Here is the link to google documentation:
https://support.google.com/datastudio/answer/7020039?hl=en
Actually you can do it using Data Studio Auto Refresh, what you need to do is enable the plugin then refresh the Data Studio your working for the plugin to work. The interval depends on what interval you choose. I'm using the plugin and its working. :D

Combine multiple SSRS Report and publish that to SSRS native web portal

How can i combine couple of rdl reports and display that to SSRS native web portal. I already created that report and deployed to the server (SSRS Native portal) using Sql Server data tool 2015. But my client wants to view all reports in the same window. Although all reports has the same parameter.enter image description here
enter image description here
enter image description here
The SSRS native web portal doesn't contain a mechanism to link multiple reports and run them on the save page via shared parameters (or anything even like that).
You have two options:
Create the merged report yourself. You should be able to import (or copy/paste) the datasets from each report into a new report, link them all one one set of parameter(s), and copy paste the content of each report (then fix all broken references).
The option above is the naive way to merge three reports into one. Instead, you could create a new master report, add the shared parameter and then add each additional report as a subreport to the parent report. Tutorial here.
Create an ASP.NET application that wraps the multiple reports into a single page. This will be quite a bit of work if you have never done this, but you would be able to create a custom parameter(s), pass the parameter(s) into the each report through code and render the multiple reports on a single page.
I would recommend option number 2.

SSRS URL Access slower than Report Manager

I am using URL access to embed a report in an application using a URL that looks something like this:
https://servername/ReportServer/Pages/ReportViewer.aspx?/ReportPath/&parameter=value
This report has several parameters whose valid values are populated by queries.
The report is displayed in about the same amount of time as it takes when accessing the report via Report Manager.
However, I've noticed that if I change a parameter in Report Manager and click the "View Report" button, it refreshes a few seconds faster than if I refresh the report by URL access.
I assume this is because refreshing the report in Report Manager cuts out some processing steps. It looks like a bunch of state is sent back to the server when you refresh the report using the "View Report" button in Report Manager, whereas I presume refreshing the report via URL access is essentially doing all of the work from scratch.
Are my assumptions correct? Is there any way I can refresh a report with new parameters via URL access just as quickly as it does when using Report Manager?
You're assumptions are correct, as far as I know the Report Manager and ReportViewer controls will have a session spanning multiple requests. (Although I'm a bit surprised this would also work when you change the parameters, because I can't imagine what steps could be skipped in that case.)
To control this, the Report Manager uses sessions. Even though I haven't tried it myself, you should be able to do this with URLS by using the SessionId and related parameters.
Let us know if this worked for you!

SSRS Report in Web App clearing out Session variables?

We're using a SSRS report with URL links that's being displayed in our web application. When we click on a link in the report, it should take you to a page within the web app. However, when we click on the link (link created using SSRS Action property), it appears to be clearing out the session variables. The web app gives the error that we are "no longer logged in".
Any ideas as to how to go about fixing or debugging? Thanks in advance!
Assuming that they are on different servers:
http://blogs.msdn.com/b/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx