In this article
To make a filter visible in a report, use the "layoutArea toolbar" block to place filter code. Static filters are located in specific pages or widgets.
To make a filter visible in the report, one must place the filter code within a special block referred to as "layoutArea toolbar {}," as demonstrated in the example below.
layoutArea toolbar {
filter date #newdatefilter{
label: "Date" //Filter name
dateVariables: relationship:interview_start
}
filter multiselect {
optionsFrom: survey:NPSSegment
}
filter multiselect {
label: "Account Rating"
option checkbox {
label: "Gold"
value: accounts:TotalAccountValue > 200000
}
option checkbox {
label: "Silver"
value: accounts:TotalAccountValue > 99999 AND accounts:TotalAccountValue < 199999
}
option checkbox {
label: "Bronze"
value: accounts:TotalAccountValue < 100000
}
}The filter icon will then appear in the report toolbar, enabling the user to access the filter panel.
Note
Static filters are not positioned within the "layoutArea toolbar" block. Instead, this type of filter is located within a specific page or widget and only applies to that page or widget (Page-Specific Filters).
For details of the properties and settings, refer to filter in the CDL Reference Guide.