I have a reporting service report that accepts a parameter. I am trying to pass the parameter as follows:
http://localhost/ReportsServer/Pages/Report.aspx?ItemPath=%2fSalesReports%2fReport1&CustomerID=3
The above seems not to work. Any idea?
Regards,
Try pointing to the server directly:
http://localhost/ReportsServer?%2fSalesReports%2fReport1&CustomerID=3
Related
Our application is in .net and we are required to embedd and show case the SSRS reports from the .net application. Embedding was succesfull, now the data source is required to be made dynamic based on the logged in user, there respective server IP, DB name, user name and password is supposed to be passed to the SSRS. How can we achieve this?
Would really appreciate any help.
Thanks
Trying to get the connection string as a parameter from the URL but we are not sure how to accept the parameter. where should we get the control from
Assuming you can get the datasource passed to the report as a string already, then you can do this, but you must use an embedded datasource, not a shared datasource.
When designing reports from scratch you'll need to set the datasource's connection string as normal, just so field lists etc. all work, then once you have the report working, edit the datasource and hit the [fx] button next to the connection string.
Then just select your passed in parameter like below where myConnectionString is the passed in parameter.
I have a report in SSRS that has a drill-down report. I would like to have the action linking to the drill-down report open it in a new page.
I've used this expression as the action URL:
="javascript:void(window.open('server?ItemPath=%2fTimisoara%2fDrilldown%2fDrill01&ID=123', '_blank'))"
When trying to access the drill-down report I get the following error:
The ID parameter is missing value
You're not constructing your URL properly. For starters the server bit should actually be the name of the server (or the IP address) and you need to properly construct the URL including the http://
You can then construct your URL like so:
http://reportserver/ReportServer?/Path/To/Report/DrillDownReport&Param1=Value1&Param2=Value2
I recommend reading the following MSDN pages:
URL Access (SSRS)
Pass a Report Parameter Within a URL
I am building a SSRS report portal to run various reports. One of the requirement is to pass the database connection string (server name, database, username and password) dynamically to the report.
Please let me know how to achieve this. I am new to SSRS report.
Thanks
Sri
You should make sure that your datasource is embedded in the report.
And you can set your Connection string dynamically using an expression.
There is some more information on dynamically setting connection strings Here
You can use parametr and experssion for connection string of datasource
="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value
I am passing the following URL in order to load a report in SSRS. There are two parameters in the report:
http://servername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
Parameters
String - ssn
DateTime - txtEffectiveDate
However, when the page loads, it is as if the parameters are not recognized and it loads the page with empty fields in the parameters.
What is missing or incorrect about the URL? Thanks!
You're so close! You should be able to pull this off by changing Report.aspx to ReportViewer.aspx. For example, see below:
http://servername/Pages/**ReportViewer.aspx?**ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
I was calling the Report Manager URL, instead of the Web Service URL.
Here was the working version of the SSRS Url:
http://servername/ReportServer?/Folder1/Folder2/Folder3/
In order to complete the call to the SSRS Web Service Url, attach the report name and any parameters that are needed to run the report:
http://servername/ReportServer?/Folder1/Folder2/Folder3/ReportName&Param1=12345
I am using the web service “ReportingService2005.asmx” to set parameters of reports and linked reports. Here for I call the method “SetReportParameters(NewItemPath, Parameters)”. This works great until I try to set a parameter of the type DateTime. Here I get a format exception. The reason for this is that the value is a formatted string where the format does not fit. For example I have a parameter coming from a German Server (“31.1.2010 00:00:00”) and try to set it on an English Server (“12/31/2010 12:00 AM”).
To solve this problem I need to know the culture that the server is using so I can format the string before I call the method. Is it possible to get the culture/language of the server through the web service “ReportingService2005.asmx”?
I could also imagine that there are other ways to solve this problem, but haven’t find anything so fare. Are there other ways to take care of the internationalization of parameters using the web service? Has anyone other ideas?
You can try with the odbc format
2010-10-15 08:56.
If it doesn't work at all, you can do it "manually", i mean by doing a convert into sql code.