1 Reply Latest reply on Aug 17, 2010 3:46 AM by flex4

    Problem with combo box for selecting the data............

    pogla129 Level 1

      I hav a problem with combo box in flex

       

      the problem is that i  could not  select a particular data from the combo box .....bkz i didn't know the index of the data.........

       

       

       

      private function resultGetManPermitDetails(event:ResultEvent):void{

         xmldata1=event.result

      as XML;

       

       

        var obj:Object=new Object();

      obj=xmldata1.sign_name

        k=comIssueAuth.getChildIndex(obj.valueOf());  

        comIssueAuth.selectedIndex=k;

      }

      ****************************************************************************************** *********

      Here is given below the  servlet code,from where i am getting the xml data for combo box

      writer.print("<myClass>");

      while

       

       

      (rs.next()) {

       

      writer.print("<item_sign>");

       

      writer.print("<label>" + rs.getString("label") + "</label>");

       

      writer.print("<value>" + rs.getString("value") + "</value>");

       

      writer.println("</item_sign>");

      }

       

      writer.print("</myClass>");

       

      can any body help me to find the solution..............