0 Replies Latest reply on May 28, 2013 10:14 PM by info20111

    problem in filling datagrid with a java service

    info20111

      Hi i have a java service that returns an arrayList of TypeTicketVO ,in the side   of java when i tested my service it returns the correct result in the console but in the side of flex data grid is always empty and not filled with data (in fact this code recuperate 2 data field filled by the user and call the java service when the buttun is clicked

      this is my mxml :

      [Bindable]

                                    var startDate:Date;

                                    [Bindable]

                                    var endDate:Date;

        [Bindable]

                                    private var  FinalResult:ArrayCollection = new ArrayCollection();


      public function getTicketByStatus(evt:ResultEvent):void



      {




      FinalResult= evt.result as ArrayCollection;



      }

       

       

       


      protected function buttnSta_clickHandler(event:MouseEvent):void



      {




      startDate=StartDateField.selectedDate;




      endDate=EndDateField.selectedDate;




      CountTicketsByStatusResult.addEventListener(ResultEvent.RESULT,getTicketByStatus);




      CountTicketsByStatusResult.token = ticketServiceImpl.CountTicketsByStatus(startDate,endDate);





                   }

      <mx:DataGrid id="dg" x="306" y="91" width="354" height="208" dataProvider="{FinalResult}">

       

      help please