In this article
Category sets can be used for on-page filters. They can be defined by the categories of a question and referenced in a selector.
A data grid widget using category sets View CDL widget dataGrid #dataGridWidget { label: "Using Category Sets for On-page Filters"size: medium select #catfilter { label: "Filter by City" mode: multi options: @categorySet.items } filter expression { value: selected(:claimsCenter, @catfilter.selected) } column #column { cell microchart #cell { value: average(numeric(:OSAT)) microchart bar #barMicrochart { min: 0 max: 10 valuePosition: outer } target: 7 } } row cut #row { value: :team } removeEmptyColumns: true removeEmptyRows: true } | Using Category SetsCategory sets can be created based on the categories of a question. First define the category set: View CDL categorySet #categorySet { question: :Claimscenter } Then this can be referenced in a selector as normal: View CDL select #sel { mode: multi options: @categorySet.items } Note There is now an additional mode property allowing the selection to be set to multi-select |