2 Replies Latest reply on Sep 29, 2009 11:08 AM by FALCONSEYE_

    problems with combobox dataprovider

    FALCONSEYE_

      I have the following:

       

      <mx:RemoteObject id="myCFC" destination="ColdFusion" source="components.myCFC"  showBusyCursor="true">
          <mx:method name="getStuff" result="UserHandler(event);"/>
      </mx:RemoteObject>

       

      ...
      <mx:ComboBox id="propertyCode" dataProvider="{qry_stuff}" labelField="name" />

       

      Index.as has:

       

      Bindable] public var qry_stuff:ArrayCollection = new ArrayCollection;

       

      private function UserHandler(event:ResultEvent):void {
         qry_stuff= event.result as ArrayCollection;
      }

       

      public function init():void {
        /* call my remote Object to get my data */
         myCFC.getStuff();
        }

       


      my problem is the combobox displays [object Object]

       

      I know there is nothing wrong with the cfc and there is a field called "name" in getStuff. Why does it not display the value of the object? thanks in advance.