comboBox.selectedItem() will return an Object. How can I turn that into a String?
E.g., if the DataProvider is an array–> new Array({data: “20”, label: “twenty”)
tracing that selected item gives–> [object Object]
but I want to get “20”. I can’t simply cast it. Using Object.toString() doesn’t help either.
Thanks.