C# [19,21] Hello, I would like to inquire about the function of "OR Filter".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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?