Hi there,
I'am having an issue working with a MultiComboBox and values with blanks at the beginning or ending. In detail, I am providing values like “New York City “ to my MultiComboBox and when asking for its value I am getting [“New York City”] where the space got trimmed.
The problem appears when using these values as unique keys, as no or a wrong value will be found for the trimmed key.
A small exampling with this issue:
I tested this behaviour with your latest nightly build (SmartClient_v101p_2016-03-09_Pro) and all current browsers.
Best regards
I'am having an issue working with a MultiComboBox and values with blanks at the beginning or ending. In detail, I am providing values like “New York City “ to my MultiComboBox and when asking for its value I am getting [“New York City”] where the space got trimmed.
The problem appears when using these values as unique keys, as no or a wrong value will be found for the trimmed key.
A small exampling with this issue:
Code:
isc.VLayout.create({
"ID" : "rootLayout",
"autoDraw" : true,
"members" :
[
isc.DynamicForm.create({
"ID" : "form",
"fields" :
[{
"ID" : "multiComboBox",
"name" : "multiComboBox",
"editorType" : "MultiComboBoxItem",
"valueMap" : {
1 : "New York City "
}
}
],
"values" : {
"multiComboBox" : "New York City "
}
}),
isc.Button.create({
"title" : "Show value",
"click" : function () {
isc.say("First value of multiComboBox is \"" + multiComboBox.getValue().first() + "\"")
},
})
]
})
Best regards
Comment