Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 如果只有一个Reporting Services参数,如何自动选择该参数_Reporting Services_Ssrs 2008 - Fatal编程技术网

Reporting services 如果只有一个Reporting Services参数,如何自动选择该参数

Reporting services 如果只有一个Reporting Services参数,如何自动选择该参数,reporting-services,ssrs-2008,Reporting Services,Ssrs 2008,我正在使用VisualStudio2010中开发的SQLServerReportingServices(SSRS)构建报告 如果报表参数下拉列表中只有一个项目,则我希望自动选择该项目。而不是获取选择值,然后手动选择该项(当它是列表中唯一的项时) 目前,我通过一个存储过程设置报表参数的默认值来处理这个问题,该存储过程检查参数列表中项目的行数,如果只有一个,则返回默认值。但这似乎有点过分了 有什么方法可以在Reporting Services中进行设置吗?看起来我将使用存储过程进行设置(现在的方式)

我正在使用VisualStudio2010中开发的SQLServerReportingServices(SSRS)构建报告

如果报表参数下拉列表中只有一个项目,则我希望自动选择该项目。而不是获取选择值,然后手动选择该项(当它是列表中唯一的项时)

目前,我通过一个存储过程设置报表参数的默认值来处理这个问题,该存储过程检查参数列表中项目的行数,如果只有一个,则返回默认值。但这似乎有点过分了


有什么方法可以在Reporting Services中进行设置吗?

看起来我将使用存储过程进行设置(现在的方式):

即使有更多选项,也不能总是选择第一个值?我认为您当前的解决方案是最好的选择。这是我会使用的一个。@Jeroen如果这是一个选项(我不确定),我将如何在SSRS中这样做?