简体   繁体   English

报表生成器中的可见性表达式

[英]Visibility Expression in Report Builder

I have 3 reports currently designed on Report builder 3 that run at the same time but I want to only show each report when it is selected in the Select Report Parameter. 我目前在报表生成器3上设计了3个同时运行的报表,但我只想在选择报表参数中选择它时显示每个报表。

I know I have to go into the Chart Properties and select Visibility based on an expression but I have no idea how to construct the expression. 我知道我必须进入图表属性并根据表达式选择可见性,但我不知道如何构造表达式。

The Parameter includes: 参数包括:

Occupancy PitchNightsSold Capacity 占用PitchNightsSold容量

I thought all I needed to do is write the following expression: 我认为我需要做的就是写下面的表达式:

=IIf(Parameters!WhichReport.Value = "Occupancy", true, false)

But it doesn't seem to work, can you help? 但它似乎不起作用,你能帮忙吗?

In the visibility property, you have to give the expression to hide the component. visibility属性中,您必须提供表达式以隐藏组件。 So you have to give true if you want to hide and false if you want to show the component. 因此,如果要隐藏则必须给出true如果要显示组件,则必须为false Change the expression to 将表达式更改为

=IIf(Parameters!WhichReport.Value = "Occupancy", false, true)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM