Hiding or disabling passed parameters in SSRS - reporting-services

I have a summary SSRS report that I allow the user to drill on. When they click to see details, it take them to a different report and passes the parameters from the first page with it.
My problem is that I have 4 possible parameters, but depending on what count the user clicks on, some parameters have values and some are blank. I do not want the users to have the ability to change the passed parameters. If I mark all of the parameters as 'Hidden' I get an error for the ones without values (The 'day' parameter is missing a value), even though I allow them to be blank or null. I've also tried just passing an empty string or 'Nothing' and I get the same error
Ideally, I'd like them to be hidden, but I'd also be okay with graying them out or disabling them. Passing them in the URL is not an option..

Related

Enable Selection of only two values in SSRS multiple select parameter

I have a SSRS report in which i have a parameter which comes in a dropdown it is a multiselect parameter, now i want that at most user should be able to select only two values from the dropdown.
Although you can't stop the user from selecting more than two values, you can keep the report from being shown if they do. First, I created a red-text textbox at the top of my report that holds an error message. Something like:
You selected more than two values for ReportParameter1, try again...
Then, I set the visibility of this message with an expression (for hidden) set to =(Parameters!ReportParameter1.Count<=2). Now this error will show only when the user has selected more than two parameters.
I then hide the content of my report with a visibility expression of =(Parameters!ReportParameter1.Count>2). Note that you can simply put all your content in a rectangle and then hide the rectangle.
If your user selects more than two parameters, only the red error message is shown. If they select two or less, everything looks normal. I would also write your stored procedure in a way so that if a user selects too many values for the parameter, it won't return any data.
This is not possible. A multi-select parameter is that and just that: a parameter that lets you select multiple values.
If you will always only have two values that need selecting, the easiest way of implementing this would be to have two single value parameters labelled as Value 1 and Value 2 which are then both referenced in your report query.
There are workarounds as suggested by #Kyle Williamson in his answer, but there is no exact answer possible as this facility is not present in SSRS

SSRS refresh default value for parameter with no defined available values

I am creating a report in SSRS which displays information about properties in a county. The user can select a district for which to view properties. Some districts are small, having only 10 properties, others are large with close to 8000 properties. For the large properties, the System.OutOfMemory exception gets thrown when trying to run the report. To work around this, I added 2 parameters where the users can specify the range of properties to look at (1-500, 7-2231, etc). The default values for these parameters are 1 and the count of properties, so that all properties are reported by default.
The problem I'm having is that after you select a district and the parameters are populated based on that district, if you then change your district, the default values don't change. So if the first district you select has only 10 properties and the second one has 500, you'll only see the first 10 in the second district. I've done some research to see if it's possible to refresh the default, but all the solutions I've seen are using dropdown parameters, which is impractical for what I'm doing. Is it possible to refresh the default values of a non-dropdown parameter?
I don't think this is possible in the way you're asking for. A workaround would be to give the user a parameter to choose between "use defaults" and "use entered values", and then don't put defaults in the other parameters. If the users understand what they'll get if they use defaults, this will work the same way, though it's a bit more confusing.
In your dataset, you'd have to have an OR or CASE that tested the value of the #default parameter to determine whether to use entered parameters or defaults.

Call SSRS by URL pass parameter by label

There is a SSRS report, with one parameter, I only know its label not the values. So how can I get the report by URL? I know how to render a report with all the parameters set by defaults to Excel. But this report has the parameter not set to default, so I have to manually select a value then run in report manager. And important thing is I don't know the available values for this parameter as I have only browser permission. So can't download rdl, can see the parameters etc as you can imagine. The url method seems only allow you to pass parameter value not parameter label. So is there anyway?
No, there is no way to do that. You must use the parameter value in the URL, you cannot use the label (unless value and label happen to be the same).
If you don't have access to the report definition then you will need to find someone who does, who can then find where the parameter values are defined and tell you what they are.

How to reload report with same parameters in SSRS?

Scenario - I have a multi-value visible (user defined) parameter that I use in the dataset query, and I have a link in the report that directs the user to the same report (but it does something else that is irrelevant to this topic). However, when the report reloads, the user has to set the parameter again from the drop-down list.
Question - Is there a possibility to pass the parameter that the user already set the first time, and reload the report without forcing the user to set it again?
What I tried so far (with no success) - I tried passing the following parameter values to the report:
Parameters!param_name.Value(0)
param_name
[param_name]
The answer is - Yes, it's possible.
Have you tried - "=Parameters!param_name.Value" without "(0)" ?
Go to the Action tab of the Text Box Properties, select "Go to report" as Action, specify your current report as the destination report. And choose the parameters.
It works.

SSRS deselecting from Multi Value Parameter issue

I am having issues with Multi Value Parameter in SSRS Report.
My Parameter contains 10 values. If I Deselect All the values from Parameter I get error that the Parameter cannot be blank so I go back to the drop down and it does not get filled in with the values. I deleted two items from the Parameter and I do not get issues and my list gets populated if I deselect everything.
If i am not wrong, You are saying your parameter drop down gets cleared out once you get the error that "Parameters cannot be blank" ? How about checking "Allow blank" in parameter properties http://msdn.microsoft.com/en-us/library/aa337234(v=SQL.100).aspx ?
Another thing you may like to check is, if there is any non-ascii character in your parameter drop down's available value. Manipulating this parameter values at run time (check/uncheck) could eventually lead to unexpected behaviors like parameters clearing out or report never rendering.