Creates a user filter category for record list.
This function creates a Facet type object, and is used within a Record Type Object
Options for the user filter are created with the a!facetOption() function. The most popular use of a!facet() is to generate filter options instead of manually writing them. See the Dynamic User Filters page for common uses.
a!facet( name, options, defaultOption, isVisible )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
=a!facet(
name: "Status",
options: {
a!facetOption(
id: 2,
name: "Active",
filter: a!queryFilter(
field: "status",
operator: "=",
value: "active"
)
),
a!facetOption(
id: 3,
name: "Inactive",
filter: a!queryFilter(
field: "status",
operator: "=",
value: "Inactive"
)
)
},
defaultOption: "Active",
isVisible: true,
allowMultipleSelections: true
)
There are older versions of this function. You can identify older versions by looking at the name to see if there is a version suffix. If you are using an old version, be sure to refer to the corresponding documentation from the list below.
Old Versions | Reason for Update |
---|---|
a!facet_17r1 | Added the allowMultipleSelections parameter, which, by default, allows multiple selection user filters. |
To learn more about how Appian handles this kind of versioning, see the Function and Component Versions page.