This content has been marked as final. Show 3 replies
You will need to specify either a labelField or labelFunction. You can use a labelField if the value you want to show in the combo box is a first level property of the item.
If the data you want to display is deeper in the item object, and you need to "dot down" to get it use a labelFunction.
HTTPService resultFormat defaults to Object. I have never been comfortable about the way Flex converts xml into objects, so I always use e4x. This choice affects the structure of your item objects, and therefore the way you need to access the item objects properties.
Try labelField, anif that doesn't work use a labelFunction. Note, you can debug the labelFunction quite handily.
Thanks for the reply Tracy, worked like a charm. I think one of the hardest things about being new to flex is understanding how much of the work is done for you. Once again thanks been trying to figure this out all day :P
Another of the hardest things is deciding how long to bash your head against a wall before asking for help!
Go on and ask. The worst that will happen is someone will snarl at you to read the docs, and you can get over that.
One interesting effect: Post a question, and you figure out the answer yourself a few minutes later. Its like magic.