Ssrs 2008 如何检查上一个下拉参数是否只选择了一个值?

Ssrs 2008 如何检查上一个下拉参数是否只选择了一个值?,ssrs-2008,reporting-services,Ssrs 2008,Reporting Services,我有两个参数,@AccountID和@SourceType,它们都是下拉列表 以下是存储过程中@SourceType参数的声明: @SourceType BIT = NULL, /* * Works if @AccountID is not null * (should only be used if @AccountID has a single value) * * 0 - Owned by @AccountID * 1 - External (not owned by @Acco

我有两个参数,@AccountID和@SourceType,它们都是下拉列表

以下是存储过程中@SourceType参数的声明:

@SourceType BIT = NULL,
/*
 * Works if @AccountID is not null
 * (should only be used if @AccountID has a single value)
 *
 * 0 - Owned by @AccountID
 * 1 - External (not owned by @AccountID)
 */

如果AccountID只有一个值,并且是一个具有大约50个选项的多选项,那么它应该是可选择的。

我建议您创建一个数据集,查看@AccountID参数并根据所选值的数量返回选项

使用参数的“计数”属性可以检查是否选择了多个值。例如参数!参数.Count


然后根据返回的计数数,您可以设置@SourceType参数选项。

只是为了澄清-更改AccountID参数的值时是否调用此存储过程?换句话说,proc是SourceType参数的数据源?@GShenanigan,是的,完全正确-存储过程基本上将@AccountID参数作为varchar和逗号分隔,我不确定是否可以对AccountID的结果禁用SourceType参数,但是,如果AccountID是单个值,那么proc逻辑可以处理它并返回null值。这对你有用吗?@Adel SourceType perameter是否有自己的下拉数据集?