0 Replies Latest reply on Sep 16, 2006 9:03 AM by UBICX

    HTTPService result error with not data in xml

    UBICX
      hi
      i have a error in my code when i load datagrid with httpservice and arrayCollection only when xml source return no data or only one !
      all ok for xml with more than 2 data in xml
      when my xml return one or zero data => error 1009 convertion error when no data and 1034 when one data !!!

      [Bindable]
      private var affairesCol:ArrayCollection;

      private function bsResultHandler(event:ResultEvent):void
      {
      affairesCol = event.result.affaires.affaire;
      CursorManager.removeBusyCursor();
      }

      <mx:HTTPService
      id="bs"
      url="list.xml"
      invoke="bsInvokeHandler(event);"
      result="bsResultHandler(event);"
      fault="bsFaultHandler(event);"
      />