选择全部作为多值参数的默认值 [英] Select All as default value for Multivalue parameter
问题描述
我正在Visual Studio 2008中使用大量多值参数,并且效果很好,但是我希望在打开报告时将(全选)"选项作为默认值.
I'm building a report in Visual Studio 2008 with a lot of multivalue parameters and it's working great, but I would like to have have the "(Select all)" option as the default value when the report is opened.
是否可以使用某种表达式或SQL代码来实现这一目标?还是我每次要运行报告时都需要在每个参数中每次都选择(全选)"?
Is there some kind of expression or SQL code I can use to make this happen? Or do I need to choose "(Select all)" every time, in every parameter, each time I want to run the report?
推荐答案
尝试设置参数的默认值"以使用与可用值"相同的查询.实际上,它提供了每个可用值"作为默认值",并自动选中了全选"选项.
Try setting the parameters' "default value" to use the same query as the "available values". In effect it provides every single "available value" as a "default value" and the "Select All" option is automatically checked.
这篇关于选择全部作为多值参数的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!