Difference between revisions of "HowTo:Configure Hierarchy Filtering"
Line 33: | Line 33: | ||
* define one or more profiles for filtering. Create files having the extension ("*.hfprofile") | * define one or more profiles for filtering. Create files having the extension ("*.hfprofile") | ||
* a filter rule consists of the property id, the value to be compared and a comparison mode (StartsWith, Equals) | * a filter rule consists of the property id, the value to be compared and a comparison mode (StartsWith, Equals) | ||
+ | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<HierarchyFilterRulesProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | <HierarchyFilterRulesProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
Line 55: | Line 56: | ||
</HierarchyFilterRules> | </HierarchyFilterRules> | ||
</HierarchyFilterRulesProfile> | </HierarchyFilterRulesProfile> | ||
− | + | </source> | |
<!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS --> | <!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS --> | ||
Revision as of 07:55, 24 October 2017
Hierarchy Filtering allows the UBIK data designer to provide filter rules for the global object hierarchy on the client. For example, if a user wants to see all objects having the color green and a certain progress value, we have to create hierarchy filter rules - only allowing to view filterable objects that meet both of these criteria. When the filter is applied, objects that do not meet the criteria will be invisible. This means they will not be seen when browsing through the data and not even be found when doing queries or search operations. The designer can decide which objects are affected by the filtering by declaring objects as hierarchy filterable objects. These will be filtered based on the defined criteria. In addition, the designer can also declare objects to be hierachy filterable folder objects. These objects are filtered depending if there is visible content inside the data branch beneath this object. By defining these objects and rules, it is possible to thin out whole data branches depending on filter rules.