Doug thanks so much. I really appreciate it.

Jim
--- In [email protected], "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Sounds like you need to set the labelField property of your combo 
> box.  For example, if the objects in your statesData array contain a 
> property called "name" with the values you want shown in the 
> control, you would use:
> 
> <mx:ComboBox dataProvider="{statesData}" labelField="name" />
> 
> If you aren't sure what the property with the label you want to show 
> up in the combobox is called, switch back to datagrid and see what's 
> in the appropriate column header - that'll be the value to use in 
> place of "name" in the above example.
> 
> 
> --- In [email protected], "Jim Pickering" 
> <jackofwebtrades@> wrote:
> >
> > In my code, below, if I change Combobox to Datagrid, the data 
> loads just
> > fine. But as a Combobox I get the exact number of records returned 
> from
> > my database table, but [Object object] in the Combobox. What am I
> > missing?
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="vertical"
> >      xmlns:forms="forms.*"
> > creationComplete="cfService.getStatesAsArray()">
> > 
> >      <mx:Script>
> >          <![CDATA[
> >              import mx.collections.ArrayCollection;
> >              import mx.rpc.events.ResultEvent;
> > 
> >              [Bindable]
> >              private var statesData:ArrayCollection;
> > 
> >              private function statesHandler(event:ResultEvent):void
> {
> >                  statesData = new ArrayCollection(event.result as 
> Array);
> >              }
> >          ]]>
> >      </mx:Script>
> > 
> >      <mx:RemoteObject id="cfService"
> >          destination="cfmx"
> >          source="cats.com.states"
> >          result="statesHandler(event)"/>
> > 
> >      <mx:ComboBox dataProvider="{statesData}"/>
> > 
> > 
> > </mx:Application>
> >
>


Reply via email to