5 Replies Latest reply on Feb 10, 2010 9:55 AM by archemedia

    Problem with combobox data provider not being set

    Sean McElroy

      I have a page with three bindabable comboboxes as shown below:

       

       

       

      <mx:FormItem label="Sub-Division">

       

       

           <component:BindableComboBox dataProvider="{model.subDivisions}" id="subDivisionCB"

                     labelField="

      name" valueField="name" selectedItem="{client.subDivision.name}" />

       

       

      </mx:FormItem>

       

      <mx:FormItem label="Market Sector">

       

       

            <component:BindableComboBox dataProvider="{model.marketSectors}" id="marketSectorCB"

                labelField="

      name" valueField="name" selectedItem="{client.marketSector.name}" />

       

       

      </mx:FormItem>

       

      <mx:FormItem label="Group">

       

       

           <component:BindableComboBox dataProvider="{model.groups}" id="groupCB"

                labelField="

      name" valueField="name" selectedItem="{client.group.name}" />

       

       

      </mx:FormItem>

       

      Strangely the data provider in the middle combobox is the only on being set. No matter which order I place the boxes in only the middle one has values. The model is populated corrrectly but the comboboxes data provides don't get set? Any ideas?

       

      Thanks.