向单个下拉列表显示多个值 - SSRS 2008 R2
To show more than one value to single drop down - SSRS 2008 R2
我有一个关于显示多个下拉值但只使用一个值作为参数的问题
我的查询
select custcode, custname from customertable
在return我将有两列..在SSRS我想要一个下拉列表来显示这两个数据,但是一旦用户select一个值,它应该只传递客户代码参数,如何使用 SSRS
参数有两个重要的属性 - Value
和 Label
。 Value 在 SQL 表达式中用作参数值; Label 是显示在参数选择框中的内容。
因此我们需要在可用值中通过参数查找查询返回两个字段:用作值字段的 custcode
以及 custcode
和 custname
的串联对于标签字段。
select custcode, custcode + ' - ' + custname as Label
from custmertable
我有一个关于显示多个下拉值但只使用一个值作为参数的问题
我的查询
select custcode, custname from customertable
在return我将有两列..在SSRS我想要一个下拉列表来显示这两个数据,但是一旦用户select一个值,它应该只传递客户代码参数,如何使用 SSRS
参数有两个重要的属性 - Value
和 Label
。 Value 在 SQL 表达式中用作参数值; Label 是显示在参数选择框中的内容。
因此我们需要在可用值中通过参数查找查询返回两个字段:用作值字段的 custcode
以及 custcode
和 custname
的串联对于标签字段。
select custcode, custcode + ' - ' + custname as Label
from custmertable