We have a requirement in ssrs.
We are having 2 parameters.
Of these 2 parameters.one value will get data based on parent parameter.
Can we do grey out child parameter based on parent parameter value selected
Related
I want to drill through from Parent Report to Child Report, Where 2 columns from Parent acts as Parameter to child.
I made 2 parameters Hidden, because value will be retrieved by Parent report.
But I m getting "The 'ColB' parameter is missing a value".
I would appreciate any help.
You've not given any details about the report parameters on the child report and how you have assigned them
Typically you would set an action on a textbox that is in your parent report. In the action properties, you would choose Go To Report and then choose the subreport name. Then you would add parameters and set the parameter name to ColA (case sensitive - this the parameter name in your child report) to your ColA field ([ColA]) from your parent report dataset (you should be able to choose this from the parameter value dropdown), then repeat for parameter #ColB.
That's all there is too it. If this does not help, show your settings in the TerxtBox properties Action tab.
I have an SSRS report that has 2 parameters - vendor and years. Years is just a text field while the Vendor is a dropdown list which is generated from a query. I am trying to run this report from another report by passing in values for both of these parameters as below:
http:///ReportServer/Pages/ReportViewer.aspx?/Production/Supply+Chain/Vendor+Part+History&years=3&vendor=00046
The value of the years parameter is setting correctly but the vendor is not getting selected in the dropdown and hence the report will not run without user having to manually select the vendor.
Can you please advise what I am missing?
There are a few things you need to check.
You are passing in the value 00046 as the vendor therefore either the available values shoudl not be defined in the report or it must include 00046 as one of the available values.
When you pass in a parameter you are passing in the parameter Value not the parameter Label. So if you had a list of available values from a table something like
CategoryID
CategoryName
1
Fruit
2
Veg
3
Meat
and in your parameter's available values you had CategoryID as the Value and CategoryName as the Label and you wanted to run the report for "Veg" then you would pass in 2 not Veg .
If your parameter's labels and values are the same, then make sure that they are exactly what you are passing in (i.e. 46 is different than 00046).
Try setting your parameter type to text, even if it is a number.
I have one dataset (DataSet1) in main report. The main report contains a subreport (child report). I would like to know how can I pass rowcount of dataset (DataSet1) in main report to subreport (child report). DataSet1 returns 1, 2 o 3 rows depending on a parameter on the query.
I have used a textbox in main report and assign it the expression:
= RowCount("DataSet1")
then I pass the value of this textbox to the subreport (child report) as a parameter using the expression:
= Reportitems!textbox1.Value
The subreport (child report) within main report is contained in a list object. This list object has assigned the DataSet1 over which it iterates.
Within subreport I print in a textbox the value of the parameter passed from main report (rowcount("DataSet1")) but it always prints value of 1 instead of print 1, 2 or 3 depending on the case.
Also I have tried to create another dataset2 which contains the same query as dataset1 but returning SELECT COUNT(*) AS rc ..... Then outside of the tablix I create another textbox and I assign to it the expression:
= First(Fields!rc.Value)
In the textbox is correctly shown the value of count 1,2,3 depending on the case but when passing it as parameter to subreport, in the subreport it is always shown as 0.
What am I doing wrong?
Instead of setting a textbox with the row count and passing that value to the subreport, could you try passing the parameter directly to the subreport. ie. =CountRows("DataSet1") in the 'Change subreport parameters' dialog?
I have one report with columnName called as 'referenceName'. Two rows get displayed on this report with two different values for 'referenceName' column.
When I am click on the first/second value in the 'referenceName' column only first value gets passed to the next drill through report. Why?
Reason for this error was that I was passing the value of the parameter instead of name of the parameter. so, I was passing '#ReferenceName' instead of [ReferenceName].
How do I set the selecting of a report parameters in ssrs to default to a different selection based on options selected.
I have a report that have up to 5 radio buttons in my parameter field and the query is such that if one value is true another should be false so users want that when they select a certain radio button, another should default to false.
In Chose default value for this parameter I used a switch function but not getting it right. Please help
I don't think you can do this in SSRS. I'd take care of this in drop downs so you can pass in a parameter to a query to dynamically change what will appear, even if it's just two vaues.
You do this by:
1) Add queries for parent and child datasets
2) Add parameters for parent and child, getting available values from the datasets
3) Reference parent parameter in child dataset
The parameters will now cascade.