Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Values of MultiComboBox trim blanks

    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:
    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() + "\"")
                },
            })
        ]
    })
    I tested this behaviour with your latest nightly build (SmartClient_v101p_2016-03-09_Pro) and all current browsers.
    Best regards

    #2
    We think we see the reason for this - should have this fixed by early next week. Unfortunately, there's no good way to work around this (other than not needing leading/trailing whitespace in valueMap entries).

    Comment


      #3
      We've made a change to address this issue. Please try the next nightly build, dated March 16.

      Regards
      Isomorphic Software

      Comment


        #4
        Thanks, fix confirmed

        Comment

        Working...
        X