4 Replies Latest reply on Oct 29, 2010 11:08 AM by Kiran512

    problem with combobox  Countrylist displaying using webservice

    Kiran512 Level 1

      Hi ,,I am very new to flex,,i am trying to display countrylist in ComboBox but this is not working,Pls Guide me with your Ideas, I am giving request thorugh webservice my service is working properly 100% i tested ,

      Flex Code:


                  private var Country_arrlst:Array;              
                  public  function creationComplete():void
                  private function remotingCountryHandler(event:ResultEvent):void{   
                   Country_arrlst =    new Array(event.result as Array);
                        Country_arr = new ArrayCollection(Country_arrlst);
             <mx:WebService id="userRequest" wsdl="http://localhost:8080/axis/services/flexdemo1?wsdl">
          <mx:operation name="getCountries"   fault="mx.controls.Alert.show(event.fault.faultString)" result="remotingCountryHandler(event)" />
          <mx:ArrayCollection id="Country_arr"
          <!-- User interface -->
        <mx:VBox id="hb1" borderStyle="solid" width="100%" height="100%" backgroundColor="white" >
            <mx:Panel title="Transaction Search Form" fontSize="12"  color="black" fontWeight="bold" fontFamily="Arial" width="100%" height="100%" >
              <mx:Canvas borderStyle="solid" width="100%" height="100%">
                   <mx:Label text="Country:" x="20" y="110"/>
                  <mx:ComboBox id="countrylist" dataProvider="{Country_arr}"  x="94" y="107" height="24" width="202"/>