In this article
Dynamic category selection based on chosen questions can be done using a selector in CDL categorySet; explained in the provided dataGrid and code snippets.
A data grid taking a selector as a dynamic value from another selector View CDL widget dataGrid #dataGridWidget { label: "Selecting Questions and Categories" select #questionbreaks3 { label: "break by" options: item { label: 'Claims Center' value: :claimsCenter }, item { label: 'Team' value: :team } } select #catfilter2 { label: "Filter by City" mode: multi options: @categorySet2.items } filter expression { value: selected(@questionbreaks3.selected, @catfilter2.selected) } size: medium column #column { cell #cell { value: average(numeric(:OSAT)) } } row cut #row { value: @questionbreaks3.selected } removeEmptyColumns: true removeEmptyRows: true } | Questions and CategoriesThe categorySet can take a selector as a dynamic value from another selector: View CDL categorySet #categorySet2 { question: @questionbreaks3.selected } Which can be used to show a question selection, and then to conditionally display categories from that question. |