当前位置:网站首页>In operation (i.e. included in) usage of SSRs filter

In operation (i.e. included in) usage of SSRs filter

2022-07-04 19:47:00 ThorpeTao

Filter IN operation , stay Microsoft There are no decent examples on our official website , Bad setting , It's easy to make mistakes
0
common problem
In filter , When a field needs to match multiple values , How to set the value ?
1. Incorrect usage
Follow the document and take it for granted , Comma separated things , Pictured . This setting doesn't work at all , It also leads to no data .
 
 
2. Self righteous correct usage
It should be set to

So you OK 了 , The data can be screened correctly . however , It's temporary .
Why do you say that? , The problem lies in the future Tablix Modification of property page , It can be said that the situation continues . The thing is that .
After saving according to the above settings , If you want to modify Tablix The settings on the property page , Just check the filter settings again , You will find that the value of the filter is no longer the same .

Still nothing changed , Save directly . here , There is no way to match the data in the report —— It's broken ! Check the filter settings again , You will find that the value of the filter has changed again .

Still nothing changed , Save directly , An error is reported

What kind of thing ? What we think “ What you save is what you open ” Common sense turns into a demon here .
I don't know why , But certainly , This is not a good way , We must find a method that can stand the test of repeated preservation .
 
Reliable method
Method 1: Bind a multivalued parameter
(1) add to 1 Multiple valued parameters

(2) Filters are bound to multivalued parameters
0
Method 2: Evolution expression
If you don't want to add a parameter to solve the problem , So how to set up IN What about computation ?
The answer is : no need IN operation , use “=” operation . Then we need to IN The meaning of operation , use “=” Operation expression . The expression itself is a very flexible thing , That's not good , So head office , Thinking can be relaxed .
0
among ,
expression :=(InStr(",backup,restore,", "," & Fields!faction.Value & ",")>0)
Operator :=
value :=True
This kind is not afraid of repeated preservation Tablix Property page , Get it done !
原网站

版权声明
本文为[ThorpeTao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041756002255.html