How to add a filter to the query facet
This ‘How-to’ provides infomation on how to add a filter to the Query facet. The default behavior of a representation class ‘Query’ facet is to display all records with no filter. The following development process demonstrates how to:
Allow the user to use links on the Query facet screen to switch the filter on and off.
Open your representation class.
Select the Organization tab > Filters block and set the following field values:
Code: Enter a unique code for this filter.
Description: Enter a description for this filter; the description will appear on the right panel of the Query facet screen as a link.
Mandat{ory}: Leave this check box clear.
If this check box is selected this filter will be permanent. The description will not appear on the right panel of the Query facet screen as a link, and the user will not have the option to switch the filter on or off.
If this check box is selected and this representation class has multiple filters, the additional filters will only select records that are available based on this filter’s selection criteria.
Default: Select this check box. When the Query facet is initially displayed, this filter will be applied.
Multiple filters can be added to a representation class; however, only one filter can be assigned as the default filter.
Option condition: This is the formula that will be used to select the records to display when this filter is applied. To build a formula using a wizard, right-click the field and select Formula Wizard from the selection menu. Alternatively, enter the formula. For example, in the Version 7 Pilot the formula [F:MYCLASS]MYSTA = 2 will display a library book loan record if the loan record is active.
Save and validate your representation class.