In this article
Selectors can be used as input into other selectors, expanding dynamic selection possibilities. The first selector populates a list for the second.
A data grid widget with a selector applied View CDL widget dataGrid #dataGridWidget { label: "Questions and sub questions" size: halfwidth select #questionGroup { label: 'Question Group' options: @groupSet.items } select #questionSelect { label: 'Question' options: @questionGroup.selected } column #copy_of_column { cell microchart#cell { value: :numberOfResponses() microchart bar #barMicrochart { valuePosition: outer colorFormat: copy_of_dropOffDefaultFormatter } target: 1 } label: "Responses" } row cut #row { value: @questionSelect.selected total: "none" showLabel: true } } | Using Selectors to Drive Selector ListsSelectors can be used for input into other selectors, supporting an even greater possibilities for dynamic selection. This time the items list itself contains another item list: View CDL valueSet #groupSet { item { label: 'Metrics' value: item {label: 'OSAT' value: :OSAT}, item {label:'Claim Ease' value: :claimEase} } item { label: 'Rating Questions' value: item {label: 'Concerns About Loss' value: :StatementsRating.1}, item {label: 'Knowledgeable' value: :StatementsRating.2} } } The first selector is populated with this list, and the second selector ten displays the item values for the item picked in the first selector: View CDL select #questionGroup { label: 'Question Group' options: @groupSet.items } select #questionSelect { label: 'Question' options: @questionGroup.selected } ``` " cardBackground: "#f9f7c8"size: halfwidth } } |