简体   繁体   English

RDLC报表设计器清除过滤器

[英]RDLC Report Designer Clear a Filter

RDLC Experts there ?? 有RDLC专家吗? I need to clear filters with an expression 我需要使用表达式清除过滤器

I don't want to filter if the Parameter is null or empty.. need to filter only when parameter contains a value. 我不想过滤参数是否为null或为空。仅在参数包含值时才需要过滤。 but i am unable to reach that similar to the code below. 但我无法达到类似于下面的代码。 i used this expression in my filter. 我在过滤器中使用了此表达式。 (if customer id equals to null don't filter else filter). (如果客户ID等于null,则不过滤其他过滤器)。

=IIf(Fields!Customer_ID.Value = "","", Fields!Customer_ID.Value)

For checking the null you are doing the wrong thing; 为了检查null,您做错了事; the NULL should be checked as the =IIf(IsNothing(Fields!Customer_ID.Value),"", Fields!Customer_ID.Value) . NULL应该作为=IIf(IsNothing(Fields!Customer_ID.Value),"", Fields!Customer_ID.Value)

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

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