Select Row as Data filter between Report viewer webpart
Hi All,
i have a requirement in SharePoint 2013 which has 2 SSRS Report Viewer webpart.
i need to pass data which i select in First webpart to second webpart.
is this possible how can i achieve this.
Thanks for your time.
Regards
Bhasker
hi
Hi Bhasker,
In my opinion, you can refer to the steps as below:
1.Get the parameters from one SSRS Report Viewer Web Part:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/454ae44f-0d29-485a-8830-d2fb0e03f250/how-to-pass-parameters-from-report-viewer-to-report-server?forum=sqlreportingservices
http://msdn.microsoft.com/en-us/library/ff487390.aspx
2.Pass parameters to another SSRS Report Viewer Web Part:
http://sharepoint.infoyen.com/2012/08/25/pass-multiple-filter-parameters-to-custom-report-viewer-web-part/
http://stackoverflow.com/questions/2564178/passing-multiple-parameters-from-custome-webpart-to-reporting-services-report-vi
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support
Similar Messages
-
Adding Report Viewer Webpart through console app Throws UpdatePanel Error
Hi,
I had created a console application in Visual Studio 2012, to add Report Viewer Webpart into the team site page in sharepoint 2013. I wrote a code to add the Report Viewer webpart into the sharepoint site. I followed some links to successfully
execute the console application to add the Report Viewer webpart.
After successful execution of the console application, if i navigate to the sharepoint site where i had added the webpart through console application, it throws the following error.
"Cannot unregister UpdatePanel with ID 'ViewerAreaUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported".
In my console application i didn't use any UpdatePanel. Just add the webpart into the default sitepage in sharepoint. Hope it was in the default page on the sharepoint site.
I had googled the rootcause for the error, but i end up with all the answers pointing to ScriptManager into the aspx page. But i didn't find the SafeScriptManager .dll file. I followed the steps, in some other sites to create the ScriptManager
dll file, but that .cs project was not in compatible mode with VS 2012/2010.
I had attached the full executing code of the console application.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml;
using Microsoft.ReportingServices.SharePoint.UI.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client.WebParts;
using Microsoft.SharePoint.WebPartPages;
using PersonalizationScope = System.Web.UI.WebControls.WebParts.PersonalizationScope;
using WebPart = Microsoft.SharePoint.WebPartPages.WebPart;
namespace SampleSite.Accessor
public class WebPartGalleryAccessor
private readonly string _rootSiteUrl = "http://<server>/sites/testsite";
private readonly string _pageUrl = "http://<server>/sites/testsite/test1/SitePages/Home.aspx";
private const string PageName = "home.aspx";
private const string SubSiteUrl = "test1";
private void AddReportViewer()
const int zoneIndex = 0;
var reportViewerWebPart = new ReportViewerWebPart();
AddReportViewerWebPartToSitePage(_rootSiteUrl, SubSiteUrl, _pageUrl, reportViewerWebPart, zoneIndex);
public void AddReportViewerWebPartToSitePage(string rootSiteUrl, string subSiteUrl, string pageUrl, ReportViewerWebPart webPart, int zoneIndex)
try
SPSecurity.RunWithElevatedPrivileges(delegate()
using (var pageLoadSite = new SPSite(rootSiteUrl))
pageLoadSite.AllowUnsafeUpdates = true;
using (var pageLoadWeb = pageLoadSite.OpenWeb(subSiteUrl))
pageLoadWeb.AllowUnsafeUpdates = true;
AddReportViewerWebPartToPage(pageLoadWeb, pageUrl, webPart, zoneIndex);
pageLoadWeb.AllowUnsafeUpdates = false;
pageLoadSite.AllowUnsafeUpdates = false;
catch (Exception exception)
throw new Exception("Unable to Add WebPart To Site Page: " + pageUrl + " Webpart title: " + webPart.Title + "Error: " + exception.Message);
private string AddReportViewerWebPartToPage(SPWeb web, string pageUrl, ReportViewerWebPart webPart, int zoneIndex)
try
HttpRequest request = new HttpRequest("", web.Url, "");
HttpResponse response = new HttpResponse(null);
HttpContext.Current = new HttpContext(request, response);
HttpContext.Current.Request.Browser = new HttpBrowserCapabilities();
HttpContext.Current.Request.Browser.Capabilities = new System.Collections.Generic.Dictionary<string, string>();
HttpContext.Current.Request.Browser.Capabilities["type"] = "IE7";
HttpContext.Current.Request.Browser.Capabilities["majorversion"] = "7";
HttpContext.Current.Request.Browser.Capabilities["minrversion"] = "0";
HttpContext.Current.Items["HttpHandlerSPWeb"] = web;
webPart.Title = "My Report Viewer";
webPart.ZoneID = "Top";
webPart.ReportPath = "/sites/testsite/Shared Documents/RemoteSalesRepor.rdl";
webPart.AsyncRendering = false;
webPart.DockToolBar = DockToolBarLocation.Top;
SPFile file = web.GetFile(pageUrl);
if (file.CheckOutType == SPFile.SPCheckOutType.None)
file.CheckOut();
using (SPLimitedWebPartManager manager = file.GetLimitedWebPartManager((PersonalizationScope)Microsoft.SharePoint.Client.WebParts.PersonalizationScope.Shared))
manager.AddWebPart(webPart, webPart.ZoneID, zoneIndex);
file.CheckIn("Webpart Added.");
return webPart.ID;
catch (Exception exception)
throw new Exception("Unable to Add WebPart To Page: " + pageUrl + " Webpart title: " + webPart.Title + "Error: " + exception.Message);
Could anyone have the solution to overcome the above issue. I was knocking my head to resolve this error.
Note:
I am using,
1. sharepoint 2013
2. SQLServer 2012R2
3. Windows2008R2 server
I can able to create the ReportViewer webpart in the site manually.
Thanks
Jaibabu
Hi Jai,
Did you find a workaround to this issue. I have the exact same issue with SharePoint foundation 2010. I am adding report viewer webpart through HTML5 web page hosted in SharePoint site.
Regards,
Ojas Maru ( My blog ) -
Report Viewer Webpart IE9 issue -Reports not visible
Hi,
we have several installations using Sharepoint 2010 together with Reporting Services 2008 and 2008R2.
When displaying reports in Sharepoint through the report viewer webpart, the rendering in IE9 will sometimes not display the report. This means
the Sharepoint site including the report viewer headline is visible, but the report itself is not rendered. After pressing ctrl+F5 the report most of the time will show up. When viewing the logs of reporting services it is clear that the report has been executed,
but as stated it was not visible in IE9.
Even when forcing IE9 to render all Websites in compatibility mode there is no change. Out of 10 times the report is roughly 3 times not visible.
On systems still using IE8 there are no problems at all.
Any ideas?
Regards,
AndreHi,
I just want to know whether this problem occurs on all the computers which installed Internet Explorer 9? As a test, please try to reset IE then check the result again:
1.
Run Internet Explorer, use Alt + T to open Tools menu, choose Internet Options.
2.
Choose Advanced tag, click “Reset…” button, click OK in the pop-up box.
3.
Click OK to close Internet Options, then restart Internet Explorer.
In you have any progress, please let me know.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
Getting 'an unexpected error has occurred' while editing report viewer webpart in Sharepoint webpart
Hi All,
I have added report viewer webpart in a page. On click of edit webpart link I am getting webpart edit toolbox. But after clicking on apply or save button, getting the following error.
'an unexpected error has occurred'
If I refresh the page then report is working fine, but webpart edit settings are not getting saved.
Please suggest.
Thanks in advance !
Soumya DasHi ,
For troubleshooting your issue, please take steps as below:
1. Open web.config file of current web application
2. Find the node that begins
<trust level=
3. Change the trust level from WSS_Minimal to
WSS_Medium
4. Save the file
5. Drop to command prompt and execute :
iisreset
If your issue persists, please provide detail error message of ULS log to determine the exact cause of the error?
For SharePoint 2010, by default, ULS log is at
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Report Viewer WebPart in SPD - Missing required page header
Hi,
I seem to be getting the following error when adding the Report Viewer webpart to a minimal masterpage in SPD:
Error Rendering Control - Unnamed 1 Missing Required Page Header
If I create a page through the IE browser on the SharePoint then I can add the Report Viewer webpart. However when I then go to view that page in SPD - again I get the above message.
This is truely irritating ....
Thanks - SteveLooks like a bug in sharepoint or some other design-time quirk in SPD. The code in the report viewer webpart (v11.0) that throws the exception is:
public static void RegisterCss(Page page)
if (page.Header == null)
throw new Exception("Missing required page header");
HtmlLink child = new HtmlLink {
Href = StyleSheetLink
child.Attributes.Add("rel", "stylesheet");
child.Attributes.Add("type", "text/css");
page.Header.Controls.Add(child);
...so it appears that SPD is not fully instantiating the master page, or otherwise partially executing it. The Header property on Page should be populated with a HtmlHead instance, which is a reference to the head tag in the master page (which must have
runat=server on it.) For me, the master page is fine -- this is why it still works when adding it via the web ui directly in the browser. When it's put through the design-time grinder in SPD, this property is null. I would presume that this is either a bug
in the webpart, or a failing in SPD.
I'm running sharepoint server 2010/sp2 and SPD 2010/sp2/x86, for what it's worth. -
"Date picker" in report - - View source shows no label for the date picker
Hi
In one of my reports, I am using multiple types (textarea/text/date picker/select list)
I wanted to use a javascript based on the label, but I do not see "<label>" for Date picker in the view source due to which my Javascript fails.
Snippet of view Source:
<td class="t3data" ><label for="f08_0001" class="hideMe508">CATEGORY</label><textarea name="f08" rows="4" cols="16" wrap="VIRTUAL" id="f08_0001">EMPLOYEE INDUCTION</textarea></td>
<td class="t3data" ><span class="lov"><input type="text" name="f11" size="15" maxlength="2000" value="29-FEB-08" style="padding-right:5px;" id="f11_0001" /><script type="text/javascript">
As you can see above, we have a "label for" for the text area but not for the date picker
Is there a reason for the same?
Thanks
NitinHi,
OK - the headers attribute should also help as these will identify the correct cells. You would need to know the html tags used within each cell for each datatype.
Would using cloneNode help you? It's a method of creating a copy of an entire row in a single instruction
Andy -
Getting selected row values of a classic report
Hi Guys,
i'm using Apex 4.1,
I have a classic report on my apex page. First column of this report is check box for row selection. and its binded to primary key of a table. i know that i can get the selected row's primary key (Check box value) using APPLICATION_ITEM.G_FO1() function. What i need is how can i get the other cell values of the selected row ?
Appreciate if someone can help on this,
Thanks.Apex-Ape wrote:
i'm using Apex 4.1,
I have a classic report on my apex page. First column of this report is check box for row selection. and its binded to primary key of a table. i know that i can get the selected row's primary key (Check box value) using APPLICATION_ITEM.G_FO1() function. What i need is how can i get the other cell values of the selected row ?If you really have a report with just one checkbox column and the rest of the data standard read-only report columns then it's not clear exactly what the requirement is. What do you want to do with them when you get them?
I can think of 2 possible approaches:
<li>Stick with the current report. On page submit you get an array of zero or more PKs. Create a collection with a row containing each PK. Whatever it is that you want to do next can then use a query that is a clone of the original report query plus a join to the PK values in the collection.
<li>Recreate the report with shadow <tt>apex_item.hidden</tt> columns in the query for each value. In the report column attributes, do not display the <tt>apex_item.hidden</tt> columns, but include them with each displayed column (or stuff them all into one column for convenience) using HTML Expressions. The values will then be available in <tt>apex_application.g_fxx</tt> arrays like the row selector checkbox.
I prefer the first one, but really it depends on what the next step is...
(If it's actually a tabular form then the values will be in other <tt>apex_application.g_fxx</tt> arrays.) -
OBIEE 10g - Unable to see data in the report view with grand total applied
Hi,
We're facing with a strange issue.
We're working on a report view.
We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
Please help.
Thanks in advance.
-RamaHi Dpk,
Thanks for your reply.
I included it in the instanceconfig.xml, but the issue still exists.
Couple of Observations
#1 - We noticed this issue when we drill down to the level which has really sparse data.
It works fine when we look at the enterprise wide report.
#2 - Works fine with few dimensional attributes and facts on the report
When we add a fact that doesn't have any value at that level, the issue starts to appear.
Thanks in advance.
-Rama -
Get ID from selected row in data table
Hi!
Does someone know how to get ID from row on which I click a button or link?
getRowData() doesnt work!
Or any other method in jsp or just something to get the ID from selected row?
Thanks!!!Hi,
I have a table with 3 columns, where column 1 represents the key, column 2 represents the data and column 3 displays the "details"-button. If you use
String key =(String)outputText1.getValue();
the variable key contains the key value of the row of the column in which the "details"-button was clicked. (outputText1 is the Output Text field of the first column).
Problem with this is that the key Value must be displayed in the table but maybe it works if the OutputText Field is not rendered, too. If anyone has another (maybe nicer) solution for the problem i would be pleased to see it here. -
Compare Date Parameters on Report Viewer
Visual Studio 2010 (VB.NET)
Crystal Reports 2010
I have two date parameters in my report viewer (Start and End dates). When the user clicks the "Apply" button in the parameter panel is there any way to display a dialog box if the Start date is after the End date?
I don't see any event for the "Apply" button, just the "Refresh" button (the ReportRefresh event).I actually got a hack job workaround to get this to work without having to write my own parameter panel or edit any of my 150+ reports:
At the form load I can loop through the controls in the crystal viewer until I find the toolbar that holds the "Apply" button and add an event handler to it's ButtonClick event.
I am using VB.NET:
'Because there is no event handler for the "Apply" button in the parameter panel,
'loop through the controls until we find the toolbar that holds that button. We can then
'add an event handler to the button click event so we can check if the "Apply" button is clicked.
For Each ctl As Control In CurrentCrystalReportViewer.Controls
If ctl.Name = "InteractiveParameterPanel" Then
'This control is the parameter panel
For Each subCtl As Control In ctl.Controls
If TypeOf subCtl Is Windows.Forms.ToolBar Then
'This controls is the toolbar that holds the "Apply" and "Delete" parameter buttons
Dim parmTool As ToolBar = subCtl
'add event handle so we can catch when a button is clicked
AddHandler parmTool.ButtonClick, AddressOf ParmToolBar_ButtonClick
Exit For
End If
Next
End If
Next
When the "Apply" button is clicked this event will then be called:
Private Sub ParmToolBar_ButtonClick(ByVal sender As Object, ByVal e As ToolBarButtonClickEventArgs)
If e.Button.Text = "Apply" Then
'check if there are date parameters
If CurrentCrystalReportViewer.ParameterFieldInfo.Count > 0 Then
'loop through and find the start and end date parameters to compare the dates.
End If
End If
End Sub -
Errors when viewing data with Crystal Report Viewer.
we receive the following errors when we try to merge a crystal report with data, we are using a crystal report viewer to display the report.
Can someone help us with where we might be going wrong?
Thanks
Rajesh
General Information
Additional Info:
ExceptionManager.MachineName: CCS104
ExceptionManager.TimeStamp: 02/10/2008 12:40:31
ExceptionManager.FullName: Congestion.Framework.ExceptionManagement, Version=33.36.0.0, Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName: /LM/W3SVC/1/ROOT/BackOfficeTR4-1-128674174088125000
ExceptionManager.WindowsIdentity: NT AUTHORITY\SYSTEM
Renewal charges Statement Id : 37171
Unknown Database Connector Error
Error in File C:\WINNT\TEMP\{AE9A7C1D-F11A-41CC-B2F7-BC1062DC3A5B}.rpt:
Unknown Database Connector Error
Stack Trace : at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.CrystalReports.Engine.ReportDocument. (Object
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.DownloadPDFStatement(Int64 lngCanId, Int64 lngFasId, String strChargeType)
at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.Page_Load(Object sender, EventArgs e)
Source : CrystalDecisions.ReportAppServer.DataSetConversionHi,
Its a best practice to use the code given below in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually(If sessions are in use).
boReportDocument.Close();
boReportDocument.Dispose();
GC.Collect();
Note: boReportDocument is the object of ReportDocument.
This code disposes the report object after using it.
Check the issue with [filemon|http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx] utility.
Amit -
Hi,
What are the differences between the Report viewer control (web forms) version 9 and version 10?
Thanks
nasayooHi nasayoo,
The report viewer control (available for Windows Forms as well as ASP.NET applications) is used to display reports in our applications. However, ReportViewer control can connect to specific SQL server versions when used in Server Mode(or Remote Mode). The
related MSDN docs for report viewer control that verify this behavior can be viewed at
Here is the details(version 9.0.0.0, with VS2008, for SQL server 2005+) andHere is the details(version 10.0.0.0 with VS2010, for SQL server
version 2008+).
Details information in this article for your reference:
http://smehrozalam.wordpress.com/2010/08/11/reportviewer-control-look-out-for-appropriate-version-when-using-in-server-mode-remote-processing/
http://www.wenda.io/questions/2005944/asp-net-ssrs-report-viewer-9-0-and-report-viewer-10-0-side-by-side.html
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Report Viewer WebPart for Sharepoint - Printing (Unable to load client print control)
Hi there,
I am running a report via the report viewer web part on a SharePoint page. The report itself is working great. But when I attempt to print it, I get a prompt to install something....and then it is followed up with "Unable to load client
print control".
There are some posts out there about updating the a certain CU or to find the RSClientPrint cab and unloading the dlls into the system32 folder and registering it. I've tried that but no go.
Anyone else encounter this issue? If so, potential solutions?
SP 2010 - 14.0.7221.5000
SQL Server 2008 R2 (Reporting Server)- 10.50.1617 (have tried updating to 10.50.6000.34)
IE = 10.0.9200
And yes, I am running as local admin....so there shouldn't be any issue installing the active x component on IE.
Thanks in advance,
EricHi Eric,
According to your description, you can't load the print button in your sharepoint site. Right?
In Reporting Services, Each user who wants to use the print feature must download and install the ActiveX control that provides client print functionality. The first time a user clicks the
Printer icon on the report toolbar, the Microsoft ActiveX control is downloaded to the computer. After the control is downloaded, the
Print dialog box displays whenever the user clicks the Printer icon.
So in this scenario, please enable the setting Download signed
ActiveX controls in Internet Explorer and download it. Please follow the steps below:
Click Tools -> Internet options.
Switch to the Security tab, select the Trusted sites zone, and then click
Sites.
Type the URL of the SQL reporting server, click Add, and then click Close.
Click the Custom level button, scroll to the ActiveX controls and plug-ins
node.
Click Enable for Download signed ActiveX controls, and then click OK.
Then we need to have the
EnableClientPrinting is set to true.
In SharePoint Central Administration, click Application Management.
Click Manage service applications.
Click the name of your Reporting Services service application, and then click
Manage in the SharePoint ribbon.
Click System Settings.
Select Enable Client Printing. The Enable Client Printing option is near the bottom of the page.
Click OK.
Reference:
Enable and Disable Client-Side Printing for Reporting Services
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Unable to insert sql server reporting services report viewer webpart
Hello,
We are trying to add a SQL Server Reporting Services Report Viewer and when we click add we get the following error message
The file you imported is not valid. Verify that the file is a Web Part description file (*.webpart or *.dwp) and that it contains well-formed XML.
Does anyone know what the fix to this is?Hi,
The Report Viewer Web Part is a custom Web Part that is installed by the Reporting Services Add-in for SharePoint Products and associated with report definition (.rdl) files that are processed by a Microsoft SQL Server Reporting Services report
server.
To install the Web Part, you must run Setup for the Reporting Services Add-in. You should not install or uninstall the Web Part independently. It is part of the add-in and can only be installed through the add-in setup package. The Report Viewer Web Part
file name is ReportViewer.dwp. It is located in the Program Files\Common Files\Microsoft Shared\web server extensions\15\template\features\reportserver folder and should not be moved to other folders.
To use the Web Part, you must have installed and configured the Reporting Services Add-in and configured the report server for SharePoint integration.
For more information,you can have a look at the blog:
http://msdn.microsoft.com/en-us/library/jj219068.aspx
http://msdn.microsoft.com/en-us/library/aa905871.aspx
http://msdn.microsoft.com/en-us/library/bb522800.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Report Viewer Webpart is Blank in Custom Master Page
Dear Experts ,
Recently my team created a new master page to replace seattle default page in Sharepoint 2013. Things were fine till the moment we accessed one of site page containing a Report Viewer Web Part to load SSRS rdl. The web part is blank
with just standard SSRS toolbar and parameter. To isolate the problem, I have confirmed that the same page works fine in seattle master. I notice that something could be missing in our site (though I am clueless on what those are). There is one post online
from someone with potentially similar issue, but it does not help in our case. Some pointers from will be appreciated. Cheers.
http://blogs.msdn.com/b/selvar/archive/2013/11/28/using-reporting-service-web-part-with-sharepoint-custom-master-pages.aspxHi,
Please try to add AsyncPostBackTimeout="0" inside the ScriptManager code in your master page.
<asp:scriptmanager id="ScriptManager" runat="server" enablepagemethods="false" enablepartialrendering="true" enablescriptglobalization="false" asyncpostbacktimeout="0" enablescriptlocalization="true" />
If the issue still exists, I suggest you provide some error messages or code for further research.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support
Maybe you are looking for
-
Need Help with SWF Video Files
Hello there. I'm experiencing a new problem with Presenter. I'm using WinXP, PowerPoint 2002 SP3, and the latest version of Presenter. I have a presentation that contains many video clips. I've converted them all to SWF files and have inserted them o
-
Should I cancel consumer finance cards?
I recently got approved for a new Discover it card. On a letter that I received with the new card it had my credit score, factors, etc. One of the factors said TOO MANY CONSUMER FINANCE ACCOUNTS. From doing research I see that these are typically ca
-
BAPI or FM for create delivery in header data & item data
Hi All, In my requriment i am downloading delivery data i.e header data and item data . When i am uploadinng the Modification data through BAPI or FM. Thank you, Dinesh Reddy
-
Passwording a page within a site
Back in the day, I was able to password protect a page within a site, or at least I thought I could. Now it seems I am unable to do so in iWeb '09. I found where I can enable an entire site to be passworded but it goes away when I select "publish to
-
Function moule to fetch stat reccords in ECC6.0
Hi All, The function module SAPWL_WORKLOAD_GET_STATISTIC dosen't work in version ECC6 but it's ok in 4.7. The Function module is available in ECC6.0 but it doesn't fetch the stat records from ST03. which is the replacement function module of SAPWL_WO