In this article
Multiple properties can be associated with selectors and valueSets. The value section for each item in the selector can contain multiple entries.
Example of using multiple properties in a data grid View CDL widget headline #headlineWidget { label: "Setting values with Selectors" select #headlineIcon { label: "Icon" options: item { label: 'Beer' value: iconL18 }, item { label: 'Toaster' value: iconD69}, item { label: 'Jazz Musician' value: iconF81 } } select #headlineColour { label: "Colour" options: item { label: 'Pink' value: "#f5dbdb" }, item { label: 'Blue' value: #b0f1f2 } } tile infographic #infographicTile { value: 19.4 view: "iconView_infographicTile" colorFormatter: copy_of_dropOffDefaultFormatter } view icon #iconView_infographicTile { columns: 5 rows: 5 fillDirection: "horizontal" max: 25 precision: "exact" icon: @headlineIcon.selected } view numeric #numericView_infographicTile { max: 100 } size: small cardBackground: @headlineColour.selected } | Using multiple properties within a selectorIn selector and valueSet definitions, it is possible to associate more than one property that changes once the selector is selected. In this example, as I want to look at a collection of grid statements I need to set values for the grid statements in the rows, and then also the grid value for the measures. The value section for each item in the selector can contain multiple entries, with a label (e.g. cellValue) and a corresponding property: (N.B. the labels can be any label you choose). View CDL options: item { label: 'Adjuster Statements' value: { cellValue: average(numeric(:AdjusterStatements$value)) cutValue: :AdjusterStatements$field } }, You can then refer to each specific property of the item using the following syntax: View CDL column cut #column { value: @questionbreaks2.selected cell #cell { value: @questiongroups2.selected.cellValue } } row cut #row { value: @questiongroups2.selected.cutValue } |