C# [19,21] Hello, I would like to inquire about the function of "OR Filter".

C# [19,21] Hello, I would like to inquire about the function of "OR Filter".

klkl12234
Advocate Advocate
168 Views
1 Reply
Message 1 of 2

C# [19,21] Hello, I would like to inquire about the function of "OR Filter".

klkl12234
Advocate
Advocate

Hello, I would like to inquire about the function of "OR Filter".

 

The code I made applied well in the direction I wanted.

 

We're going to add another feature,
I want to set the category when it is "OR" as shown in the picture.

캡처.PNG

 

Source code limited to internal security.

 

ElementLogicalFilter rootFilter = null;
List<ElementFilter> rootFilterData = new List<ElementFilter>();

List<ElementFilter> twoFilterData = new List<ElementFilter>();

FilterRule filterRule = ParameterFilterRuleFactory.CreateEqualsRule(paramId, ParameterValue, true);
twoFilterData.Add(new ElementParameterFilter(filterRule));

twoFilter = new LogicalOrFilter(twoFilterData);

rootFilterData.Add(twoFilter);

rootFilter = new LogicalOrFilter(rootFilterData);

 

I think it will be solved in "ParameterFilterRuleFactory.CreateEqualsRule(paramId, ParameterValue, true);",

but I couldn't find it.

Is there a way?

 

0 Likes
169 Views
1 Reply
Reply (1)
Message 2 of 2

klkl12234
Advocate
Advocate
0 Likes