Anyone? I'm not looking for much here, either "yes this is the only way" or "no there is a better way" will suffice. Much appreciated!
If it worked for mx:ComboBox, it should work for s:ComboBox. Neither would
accept just the id. It would want the entire object.
You're showing an ArrayCollectin of objects, but using XML like syntax so I
The data provider of the ComboBox is an array, and the service returns XML. With mx, I would just say "value=" and that would select the correct item in the ComboBox. With a spark ComboBox there is no "value" property, only "selectedItem" or "selectedIndex". I cannot use "selectedItem" because the service only returns an id, not the whole object.
Sorry, didn't notice you were using the value property on mx:ComboBox.
If you're getting back XML, unless you are going to access the data often,
you might be better off leaving it as XML and using XMLListCollection
instead of ArrayCollection.
Then, since you can probably guarantee that the XML query will return one
and only one XML node try:
If you really have to work with XML converted to objects you'll have to loop
through and find it. That's what mx:ComboBox did under the covers anyway.