0 Replies Latest reply on Nov 6, 2006 2:34 AM by b.devis

    ComboBox binding complexData

    b.devis
      Hi i have a problem to binding a comboBox with a complex data can you
      help me pls.
      Devis
      ps.
      Where i can find more documentation about "RefreshFill" i have a bit problem to understand it.
      Thanks again devis

      Here my code



      [Bindable]
      private var lkreparti:ArrayCollection = new ArrayCollection();
      private var dsReparti:DataService;
      dsReparti = new DataService("reparti");
      dsReparti.fill(lkreparti);
      dsReparti.autoCommit = false;


      <mx:Binding source="cbReparto.selectedItem"
      destination="responsabile.trpr001"/>


      <mx:ComboBox id="cbReparto"
      dataProvider="{lkreparti}" labelField="rprdsc"
      selectedItem="{responsabile.trpr001}"/>
      </mx:FormItem>




      Here my class ActionScript


      package com.visitatori.vo
      {
      import mx.utils.ArrayUtil;
      import mx.collections.ArrayCollection;

      [Managed]
      [RemoteClass(alias="com.visitatori.vo.Trsp001")]


      public class Trsp001
      {
      public function Trsp001() {}
      public var rsppkid:int;
      public var rspcgn:String="";
      public var rspnme:String="";
      public var rspsct:String="";
      public var trpr001:Trpr001= new Trpr001();


      }
      }


      package com.visitatori.vo
      {
      import mx.collections.ArrayCollection;

      [Managed]
      [RemoteClass(alias="com.visitatori.vo.Trpr001")]

      public class Trpr001
      {
      public function Trpr001() {}
      public var rprpkid:Number;
      public var rprdsc:String="";
      public var tbdg001s:ArrayCollection=new
      ArrayCollection();
      }
      }