I use several controls with combo boxes and data grids, which I fill using a HTTPService which returns some XML. However in the XML there are some telephone numbers starting with a plus sign (ie. +123456). However in the combo boxes and the data grids the plus sign doesn't show (so it would display as 12345646).
It doesn't matter if I use CDATA or not. When I change the value I saw the following:
- +123456: shows as "123456"
- +123+456: shows up correctly
- +abcdef: shows up correctly
- +abc456: shows up correctly
- +123def: shows up correctly
- +123+def: shows up correctly
So two questions: why does this behaviour occur, and how can I prevent this and show the value correctly?
As requested, sample code. Somewhere in an <mx:Script>-tag:
contactsService.send();
And in the MXML:
<mx:HTTPService id="contactsService" url="http://some/url/" method="GET" useProxy="false"/>
<mx:ComboBox prompt="Select phone number" dataProvider="{contactsService.lastResult.contacts.contact}" labelField="phonenumber" id="contactsComboBox"/>
As you can this is a fairly simple set-up.