4 Replies Latest reply on May 21, 2007 6:43 AM by bitwyse

    How to populate a ComboBox with data from a WebService

    bitwyse Level 1
      I have a simple application that has a DataGrid that gets its data from a web service. I would prefer to put that data into a ComboBox instead of a DataGrid. My web service returns objects.

      Anyone have any idea how to do that?

      <mx:DataGrid id="dgProjects" dataProvider="{ws.getProjects.lastResult}" >
      .....<mx:columns>
      ..........<mx:DataGridColumn dataField="projectID" headerText="Project ID" width="100"/>
      ..........<mx:DataGridColumn headerText="Project Name" dataField="projectName"/>
      ..........<mx:DataGridColumn headerText="Doc UNID" dataField="docUNID" visible="false"/>
      .....</mx:columns>
      </mx:DataGrid>