Creating an advanced filter in Progressive Web Applications
The following table lists the characteristics of the Advanced filter:
Characteristic | Example |
---|---|
Dependent filter values | Depending on the value that you select in one filter, the values in another filter are populated. |
Filter options within a filter | The Asset Console features options, such as People, Support Group, and Organization. |
Filter within filter | The Operating System section in the Asset Console features filters within a filter. |
Specifying a custom display by overriding type | The CPU Count section in the Asset Console lets you specify a custom display by overriding type. |
Specifying the display position of a filter | The Change Calendar filter in Change Request section lets you specify its display position. |
Default options based on the logged in user | The To be approved by (Me, My Support Groups) and Schedule dates (24H, 48H) filters in the Ticket Console section feature the default options based on the logged in user. |
Associating a menu to a filter | The filters in the Ticket Console section associate a menu with them. |
To support the Advanced filtering component for progressive views, the following properties are added in Developer Studio:
Property name | Applicable for field | Property value | Description |
---|---|---|---|
Filter |
|
| Specifies if the Advanced filter is to be enabled at table-level. |
Filter External ID |
| A field ID | Specifies the external ID of the Advanced filter. |
Filter | Column |
| Specifies if the Advanced filter is to be enabled at column-level. |
Display As Select | Column |
| Specifies if the options in the Advanced filter are to be displayed as check boxes that you can select. |
Use Value As Qualification | Column |
| Specifies if the value of a menu that contains a qualification is to be used as is when you apply the Advanced filter. |
Filter QBE Match | Column |
| Specifies the Query By Example (QBE) match for the Advanced filter.
|
Filter Display Order | Column | An Integer | Specifies the order for a menu item in the Advanced filter. |
Menu Name | Column | You must associate a menu of type search to this property. | Specifies a search menu for the filter. You have to set the type Search for the menu. You can use this only when the Filter property value is set to True and is mapped to a character field. This property takes precedence over the Menu Name property under Attributes of the character field. The following video clip shows how you can associate a Menu Name property with a predefined search menu. In this example, we associate Menu Name with Menu:Features so that end users in the custom application see searchable options from Menu:Features. Another example where you can use this property is for usernames that you want displayed when users type in a search field. |
Button Field | Button | You must associate a field of type filter to the Button Field property | Displays a filter in place of a button. Use this property to provide a button ID to display the filter in place of a button. This property is available in the Filter section. The following video clip shows how you can display a filter in the place of a button. The initial steps in Developer Studio involve associating a predefined filter with the button: |
Groups | Table | You must associate a group. | Creates a group of filters within one section. Only the following filters types are allowed to be part of groups:
The following video clip shows how you can add a filter to a filter group: |
Show Apply Button |
|
| Specifies if the Apply filters button is to be shown on the filter. In addition, it also displays the Cancel and Remove all, buttons. The following video clip shows how you can add the Apply filters, Cancel, and the Remove all buttons. |
Filter Visibility | Table Column |
| Set this property to True to display a filter. |
Generate Qualification | Table Column |
| Generates a filter qualification when end users select options. Use the following command in an active link along with the Generate Qualification property to fetch the generated qualification: |
To configure the Advanced filter component
You must set the values for the properties that are available for the Table field and the Column field.
To set the values for the properties for the Table field
- On the progressive view of a form, double-click a Table field.
- On the Properties panel, under the Attributes group, for the Filter property, select the True value.
- Beside the Qualification Field property, in the Value column, click the ellipsis
button.
The Qualification Field dialog box opens. - Select a field from the available fields, and then click OK.
The values for the properties for the Table field are set. - Under Attributes, beside Tree/Table Property, in the Value column, click the ellipsis
button and add the following additive qualification:
EXTERNAL($qualificationField$) - Save the changes.
To set the values for the properties for the Column field
- In the Value column for the Tree/Table Property property, click the ellipsis button.
- On the Tree/Table Property dialog box, add a field as a table column, and then click OK.
- Double-click the column field on the table, and then for the Filter property, select the True value.
- Drag a Character field to the form, and then double-click it to view the Properties panel.
- In the Value column for the Menu Name property, click the ellipsis button.
- On the Menu Name dialog box, select a menu of type Search from the available menus, and then click OK.
- Double-click the Table field, in the Value column for the Tree/Table Property property, click the ellipsis button.
- On the Tree/Table Property dialog box, add the Character field with a menu that you've added in step 6 as a table column, and then click OK.
- Double-click the column that you've added in step 8, and then for the Filter property, select the True value.
- Select a value for the following properties as required:
- Display As Select
- Use Value As Qualification
- Filter QBE Match
- Filter Display Order
- Click Save to save your settings.