Reformat the result?

function formatResult(p_array:Object):ArrayCollection{
   var ac:ArrayCollection=new ArrayCollection(p_array);
   ac.addItemAt({label:"Select one --------"},0);
   return(ac);
}


<mx:ComboBox dataProvider="{formatResult(service.result)}"/>

> Hi All,
>
> Any idea how I can add the usual "Select An Item" as the first label to
> a comboBox? The labels are from a webservice and I'm using
> lableField="GAL_NAME" so there isn't one available to me. How do I add
> that into the dataProvider?
>
> Any help appreciated. Thanks, Will.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to