0

I have a report in SSRS 2005 that has a Multi-value parameter. When you run the report, is it possible to programmatically check or uncheck the checkboxes depending on what checkbox you check? In other words, is there a way to have event code run when you check or uncheck the checkboxes?

Mike

4

1 回答 1

1

可以设置参数B的取值范围取决于参数A的选择值。它被称为级联参数。

  1. 创建参数 A 并为其设置值列表 - 例如,表格 Continents。
  2. 创建参数 B 并将下一个存储过程设置为可用值列表:

    CREATE PROCEDURE [dbo].[countries](@continent int)
    AS
    SET NOCOUNT ON
    
    SELECT * FROM countries WHERE id IN
       (SELECT country_id FROM continents WHERE continent_id = @continent)
    
  3. 在参数 B (Tab - Parameters) 的属性上,设置第一个参数 A 以将我们的参数链接在一起。

于 2012-01-22T08:46:29.780 回答