I am using ssrs rdl reports in my asp.net web application. I want to hide/show a rdl parameter from C# code based on condition.
for example, if user is admin, he can see customer selection filter, or else if he login as a normal user, he can not see that filter
ReportParameter has Visible property. Set it to false to hide it from user interface.
Related
I'm looking for a way to prevent the rendering of a SSRS report, while accessing it through URL access method.
I have report A, through while I drillthrough to another report (Report B) using URL access method, using a set of parameters.
Now I'm looking to prevent the rendering of report B (while is the default behavior it seems) i.e. as soon as user clicks on relevant field on report A, report B opens up with relevant parameters selected as passed through URL access but without the report being rendered, so as to give end user more flexibility if he/she wants to change the parameters of report B in some way.
I have removed the below code from URL access, however this is the default behavior of the report, so the report renders anyway.
&rs:command=render
Also, tried something like below. Didn't work.
&rs:command=norender
Would appreciate any pointers here, to get this done.
Regards.
If a make a #UserID hidden parameter in my SSRS report and set that server side in a ReportViewer control is that parameter then secure or could it be altered by the end user?
I am using SSRS 2017.
The user would be able to run the report by passing in the parameter value in a URL to open the report. I wouldn't think most users have the technical skills to do so, but it is possible.
Here's a link to show you how they would have to create the URL.
https://myserver/Reportserver?/SQL+Server+User+Education+Team/_ContentTeams/folder123/team+project+report&teamgrouping2=xgroup&teamgrouping1=ygroup
Here's the Microsoft documentation:
https://learn.microsoft.com/en-us/sql/reporting-services/pass-a-report-parameter-within-a-url
In SSRS, we have parameters and also DataSets in Report Data. I want to know whether or which parameters are hidden or not ( hide if it is any database key field ).
There are a few ways to see parameter settings in SSRS.
You can view them on the SSRS site by clicking on the report
drop down and going to manage then parameters. This has a limited amount of information about the parameters but will show if they are hidden or not.
If you want more information on the parameters open the report in
visual studio. Expand parameters in the report data pane. You should
see a list of your parameters. Just right click on one and click
parameter properties. This will give you everything configured for
that parameter.
I have an SSRS report used by many users from different regions.
Is it possible to show/hide information based on region without
using parameters - we are using a single report?
Is it possible to give report permissions to users who are outside
of network(Company)?
Without using parameters how do you intend deciding which information to hide or show?
If (big IF because you haven't said why you cannot use parameters) what you want to do is possible then you are going to
have to
Create separate folders for each class of user.
Set the permissions on those folders so that they can only see their
own folder.
Put a copy of the report in the folder.
Have a hidden parameter which passes the class of user into the
report OR
Pass in the current windows authenticated user into the report and
report on class of user from the windows login.
In answer to your second question - Yes- you will need to set up Forms Authentication.
I have read of linked reports where the user has to click on an element in a report to call for the next one. I do NOT WANT any user reaction required.
My ERP system makes a BOL report. That report has all the params I need to pass to a second report the Certificate of Analysis.
To me a subreport is on the same report itself. What is the term for this second report?
TIA
SSRS offer drillthrough reports, which sound like what you're after.
Drillthrough Reports
A drillthrough report is a report that a user opens by clicking a link
within another report.
To set one up, right click on a report element and set Action -> Go To Report and set it to the required drillthrough report.
You can set up the drillthrough report to accept parameters or fields from a Dataset in the parent report as required.