I am trying to create a report using Microsoft SQL Server Report Builder where a Radio button should be displayed in the parameters list for some of the values in another dropdown(parameter) and should be hidden for other values in that dropdown. If I select the radio button parameter to be hidden, it gets hidden for all values. How do I hide it for only some values and display for all others?

有帮助吗?

解决方案

The "out of the box" SSRS parameter interface won't let you conditionally hide parameters. You can either build your own interface to collect parameters or use cascading parameters, with a drop down, indicating that the parameter isn't needed.

To use cascading parameters, make your radio box parameter comes later in the parameter list than the dropdown on which it is dependent. Change from a radio box (boolean) to a drop down list. Have it select it's values from a dataset. This dataset can use the first parameter, and if the first parameter doesn't require the radio box, then it should only return "Not Applicable" or a similar value.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top