My SSRS report (2008 version) has two parameters. The first is a textbox receiving input for Supervisor' userid. The second is a drop-down which depends on the first parameter to show the all the staff name working under the supervisor. My questions is how the second parameter can refresh automatically after I input the first parameter in the textbox. Do I need a hidden parameter?
In parameter window go to advanced mode and select auto refresh always
In parameter properties for your first parameter, go to advanced properties an select always refresh.
Make sure that your first parameter name is the same as the #user_id used for your second parameter.
The first parameter doesn't need a default.
Related
I have an SSRS report where there is a dropdownlist parameter which will be populated based on other parameters.
For a particular scenario, when the dropdownlist options are empty, I want to show it as a textbox. Is it possible?
I don't think you can change the parameter type dynamically. It is either multi value or not. You could allow nulls (when it is empty) and get your dataset to handle the nulls
I have SSRS report with several parameters (based on SSAS cube). All parameters has own default values. For example there are 3 parameters.
At first I change 1st and 3rd parameters to another value. After that I change value of the 2nd parameter. But after that the value of the 3rd parameter changes also - to its default. But the first parameter will stay the same. There is some dependency in order - if I change 2nd parameter, the 3rd parameter will reset itself to default.
Is there any chance to avoid this situation? I want keep the value of the 3rd parameter same as I defined.
There is no connection between those parameters
Thank you for your help
Ondra
On Parameter properties, in advance tab select option as to not refresh, check below screenshot
I have a report that has three params. one is dropdown. It created automatically when i supplied
name and value, Then If we select multivalue, it shows multivalue dropdownlist.
But I am not able to create a textbox. That will act as a parameter to be supplied in report.
for that I have created a parameter, set it to allow null and datatype = "text" .
parameter visibility is also visible but as a result I can see a textbox which is a disbled one.
How can this textbox be made to work?
While in the Report Parameter Properties for the text field in question, chose Allow blank value (rather than Allow null value). In the Default Values section of the properties dialog, choose Specify values, Add a blank default value.
Now you will have a working text field that the end user can type into, and you can use that value for searches in your query.
Hope this helps
To allow user to enter the parameter value manually:
Right click on the parameter and select Parameter Properties
On the Available Values tab, select None
Click OK
Now users can manually type in the parameter value.
Click to see screenshot
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.
Hi I am using SSRS 2008.
My set up is MainReport with dataset1 and 1 parameter - OrderID. One of the columns in dataset1 is ShippingID.
My other report called - SubReport has 1 multivalue paramter - ShippingID.
I am trying to use ShippingID from Main report as multi-value parameter for Subreport.
I tried different threads here but mostly they are diffrent than my scenario.
How do I go about setting this up, is that even possible?
I have been trying to set it up for whole day but unsuccessfully.
In my scenario one Order can be on multiple shipments.
One of the things I tried is creating new multi-value parameter in MainReport - call it shippingIDs_sub and mapping its default value to dataset1.ShippingID. But when I try to run report I get error "The 'shippingIDs_sub' parameter is missing value" - because my MainReport would sometimes return NULL in ShippingID column.
My scenario is very much similar to this
SSRS passing parameter to subreport
although I sometimes get NULLs in the column used as source for multi-value parameter.
Is there any way to filter out NULLs and run subreport only for existing IDs?
In the Action where you call the sub-report, where you map to shippingIDs_sub, use an expression to pass some valid value whenever the value in your dataset is NULL.
=IIF(IsNothing(Fields!ShippingID.value),"Some Valid Value",Fields!ShippingID.value)
As to this:
Is there any way to filter out NULLs and run subreport only for
existing IDs?
No, you can't turn off the ability to go to a subreport, but you can "hide" it by changing the appearance of whatever your user clicks on so that it doesn't look like it's clickable. For example, in our reports, when something is clickable, we make it underlined in blue. So if I don't want to user to click it, I just make it the same font color/style as all the other text. But it doesn't stop a determined user from clicking on it anyway if they want.