In this article
A simple question selector using selector list to pick a question is shown. The selected question ID is used as the row question in this datagrid.
Example of a simple selector in a data grid widget View CDL widget dataGrid #dataGridWidget { label: "A simple question selector" size: medium //here is an inline selector select #selector101 { label: "Pick a question" options: item { label: 'Overall Satisfaction' value: :OSAT }, item { label: 'Claims Ease' value: :ClaimEase }, item { label: 'Likelihood to Renew' value: :Renew } } 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: @selector101.selected total: "none" showLabel: true } } | Simple Selector ListsA simple selector list consists of a pairs of labels and values. In this example, we use the selected question ID to be the row question in this datagrid. The selector is defined as: View CDL select #selector101 { label: ʺPick a questionʺ options: item { label: 'Overall Satisfaction' value: :OSAT }, item { label: 'Claims Ease' value: :ClaimEase }, item { label: 'Likelihood to Renew' value: :Renew } } And we refer to the selected value in the row with: View CDL row cut #row { value: @selector101.selected total: ʺnoneʺ showLabel: true } |