Comboboxes with strings
(Updated Edited template to July 12, 2025.)
No edit summary
 
Line 2: Line 2:
How do I create a combobox (drop-down box) with several set strings?
How do I create a combobox (drop-down box) with several set strings?


Use the [[OCLOperators Sequence]] to create a collection of strings that are used as a [[tuple]] in a combo box.
Use the [[Documentation:OCLOperators Sequence|OCLOperators Sequence]] to create a collection of strings that are used as a [[Documentation:Tuple|tuple]] in a combo box.
[[File:Combobox with strings.png|none|thumb|476x476px]]
[[File:Combobox with strings.png|none|thumb|476x476px]]
In the image above, the "OrderColumnName" references a string variable in the ViewModel which changes when the user selects an option.
In the image above, the "OrderColumnName" references a string variable in the ViewModel which changes when the user selects an option.
[[Category:View Model]]
[[Category:View Model]]
{{Edited|July|12|2025}}
{{Edited|July|12|2025}}

Latest revision as of 05:05, 7 February 2025

This page was created by Lars.olofsson@mdriven.net on 2021-02-11. Last edited by Stephanie@mdriven.net on 2025-02-07.

How do I create a combobox (drop-down box) with several set strings?

Use the OCLOperators Sequence to create a collection of strings that are used as a tuple in a combo box.

Combobox with strings.png

In the image above, the "OrderColumnName" references a string variable in the ViewModel which changes when the user selects an option.