All,
When creating a dynamic parameter list from a query, Reporting Services graciously provides a "(Select All)" checkbox. How can I select this checkbox by default so that when a user generates the report, all of the values are selected?
Thanks
The "select all" item is just a UI concept at this point. You could setup a default value for the report parameter that contains all values of the valid values list - but in that case all the checkboxes for individual items would be pre-selected, but the "select all" would still not be pre-selected.
-- Robert
|||Thanks for the reply. I actually tried your approach before posting my question. The problem that I am facing when using this approach is that the pre-selection is always static so this will not work when my checkbox list is populated from a query. Since the results of the query are dynamic, I can't setup a default list with any degree of accuracy.|||Robert,
Is there any way to tell when the Select All option is selected?
R
|||I don't know if this works
But if my dropdown source is Query, and with "Multi-Value items" checkbox checked
Under Default Values, If I choose "Query", pick the Dataset, put in the value field -> it will select all rows in the query by default
When I go to Preview, all items from the query ARE checked in the dropdown. Even the "ALL" option I created myself
(now the problem is, how do you uncheck them all with ease...)
I hope that's what you're looking for, I wish there's easy way to post pictures
|||The closest you can get is to compare the number of rows in the dataset used for the valid values list (e.g. =CountRows("ParameterDataSetName")) with the number of selected parameter values (e.g. =Parameters!P1.Count)
-- Robert
No comments:
Post a Comment