Posted 28 January 2021, 9:05 am EST
Hello everyone!
I ran into a problem, i can’t find a solution.
Current szenario:
I created a dialog template with multiple List Combo Editor. With this Combos, the user should select the language. By Default it should be on german/deutsch. How can i set this Item as default item, and show it’s text in the dialog?
My ListComboEditor template is like this: (dict. is just a dictionary i use to fill in diffrent strings per language)
type: “ListComboEditor”,
items: [
{
text: dict.lang_DE,
value: “DE”,
type: “listItem”,
}, {
text: dict.lang_ENG,
value: “EN-GB”,
type: “listItem”,
selected: true
}, {
text: dict.lang_ENU,
value: “EN-US”,
type: “listItem”,
},{
text: dict.lang_FR,
value: “FR”,
type: “listItem”
}, {
text: dict.lang_IT,
value: “IT”,
type: “listItem”,
}, {
text: dict.lang_JA,
value: “JA”,
type: “listItem”,
}, {
text: dict.lang_ES,
value: “ES”,
type: “listItem”,
}, {
text: dict.lang_NL,
value: “NL”,
type: “listItem”,
}, {
text: dict.lang_PL,
value: “PL”,
type: “listItem”,
}, {
text: dict.lang_PTP,
value: “PT-PT”,
type: “listItem”,
}, {
text: dict.lang_PTB,
value: “PT-BR”,
type: “listItem”,
},{
text: dict.lang_RU,
value: “RU”,
type: “listItem”,
}, {
text: dict.lang_ZH,
value: “ZH”,
type: “listItem”,
}
]
I though i can do it with selected, but that only ends in a selected item, when the user opens the combobox.
Can somebody help?
Best regards
Maik