1 Reply Latest reply on Jul 22, 2008 10:24 AM by wkolcz

    ComboBox values

    wkolcz
      I have my form set up with a couple comboboxes, but I cannot seem to pull the correct data to pass to CF to insert into the database. Can someone tell me that the selected values are for the following boxes? Thanks!

      I want to pass the 'data' to the function:
      <mx:ComboBox id="frmProjectLead">
      <mx:Array>
      <mx:Object data="wkolcz" label="Wally Kolcz"/>
      <mx:Object data="plinkows" label="Paul Linkowski"/>
      <mx:Object data="geoffoc" label="Geoff O'Connor"/>
      <mx:Object data="kriegera" label="Allison Krieger"/>
      <mx:Object data="magicdn" label="Vince Kasaba"/>
      <mx:Object data="jenlmat" label="Jennifer 'the web designer' Matthews"/>
      <mx:Object data="csjessie" label="Sam Jessie"/>
      </mx:Array>
      </mx:ComboBox>

      I want to pass the 'label' to the function:
      <mx:ComboBox id="frmStatus">
      <mx:Array>
      <mx:Object label="Content Gathering"/>
      <mx:Object label="Client Review"/>
      <mx:Object label="Writer Review"/>
      <mx:Object label="IA"/>
      <mx:Object label="Build"/>
      <mx:Object label="Maintenance"/>
      <mx:Object label="QA"/>
      <mx:Object label="HOLD-See Notes"/>
      </mx:Array>
      </mx:ComboBox>

      So in my function below, what do I set the projectInfo.frmStatus and projectInfo.frmProjectLead to?

      var projectInfo:Object = new Object();
      projectInfo.status = frmStatus.selectedLabel;
      projectInfo.projectLead = frmProjectLead.selectedItem.data;
      projectDAO.create({projectData:projectInfo});