0 Replies Latest reply on Aug 29, 2007 11:17 PM by rite2rio

    To retive data into a combobox using a dataprovider

    rite2rio
      Hi guys,
      I am a bit new to flex so plz if anyone can help me on this
      I am trinying to populate a combobox with the a data provider in
      this way:

      <mx:ComboBox id="cboGroup" height="22" width="100"
      dataProvider="{httpEditPartyMaster.lastResult.result.row.attribute('GROUPNAME')}"/


      Is right to do it in this way because i am not getting any data into
      the combobox ?

      This is how i am requesting to my java application:

      public function getGroup():void{
      var params:Object = new Object();
      params.tname = "groups";
      params.column = "groupname";

      httpEditPartyMaster.url ="querytable.do";
      httpEditPartyMaster.request = params;
      httpEditPartyMaster.send();
      }

      <mx:HTTPService id="httpEditPartyMaster" resultFormat="xml"
      method="POST" result="processRequest();" />

      regards ,
      Mario.