Filters

You can use two different types of filters to limit the results that the AutoComplete service shows. Access filters filter out records to which the user doesn’t have access, and expired filters filter out expired records.

To add filters to a selected component, first add a FILTERS node as a child of the COMPONENT node.

The FILTERS node can have two children. ACCESSFILTERS and EXPIREDFILTER. ACCESSFILTERS is a parent to one or more ACCESS nodes, each of which specifies a permission in Access Control that users must be granted to see AutoComplete results. For example, Building.ApplicationType has a filter that only shows application types to which the user has access.

To filter out expired records, you can add an EXPIREDFILTER node with no attributes. The filter assumes the component’s effective and expire dates are set by properties called EffectiveDate and ExpireDate. To use different properties, you can add an Effective Date attribute and an Expired Date attribute.

Note: Custom queries can also be used to filter search results, as described above.