SSRS 多值空白
我有一个 SSRS 报告,其中有几个链接在一起的下拉菜单。基本上,从下拉列表 1 中选择一个项目,然后填充下拉列表 2,依此类推。我遇到的问题是,在下拉列表 3 中,这是一个从查询填充的多值,我不想允许任何选择。
问题#1
尽管该报告参数设置为允许空白,但它不会让我取消选择所有值。我收到一个必需的错误。
问题 #2
在我的存储过程中,我有一个由 IN
语句过滤的相关参数,如果出现空白,则该语句将不起作用,因为我希望空白跳过该过滤器。
问题#3
一旦选择了其他 2 个,下拉列表#3 可能没有任何值。
我觉得我错误地使用了多值,导致了所有 3 个问题。任何帮助表示赞赏。
I have a SSRS report with a few dropdowns that are chained together. Basically a item is selected from dropdown 1 which then populates dropdown 2 and so on. The issue I am having is that in dropdown 3, which is a multi-value populated from a query I want to allow no selection.
Problem #1
Although that report parameter is set to allow blanks, it will not let me deselect all values. I get a required error.
Problem #2
In my stored procedure I have the parameter in question being filtered by an IN
statement, which will not work if a blank is coming though as I want the blank to skip that filter.
Problem #3
The dropdown #3 may not have any values once the other 2 are selected.
I feel that I am using the multi-value incorrectly causing all 3 issues. Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题#1
您能否将类似的内容添加到填充下拉列表的查询末尾?
问题 #2
是否必须传入空值?你能做这样的事情:
或者甚至
如果你想将它保留为字符串吗?
问题#3
如果您能按照我对问题 1 和 2 的建议进行操作,则应该得到解决。
Problem #1
Can you add something like this to the end of your query that populates the DropDown?
Problem #2
Do you have to pass in an empty value? Can you do something like this:
or even
If you want to keep it as a string?
Problem #3
Should be taken care of if you can do my suggestions for 1 and 2.
由 Microsoft 论坛上的 ANSA 的 Naz 提供...
Courtesy of Naz at ANSA on the Microsoft Forums...