17 Replies Latest reply on Oct 12, 2010 7:39 PM by jfb00

    Issue with binding data from java to combo box in datagrid item renderer


      Hi Flexperts,


      I'm making a Remote object call to a Java proxy, the data is coming back fine as I put it in a alert box to check. However, I'm having trouble binding it to a combo box. Here is the code the put the data into an ArrayCollection:







      public var fpers:ArrayCollection;




      function resultFPERS(event:ResultEvent):




      var resultList:ArrayCollection = event.result as ArrayCollection;

      fpers =

      new ArrayCollection();


      var resultSize:Number = resultList.length;


      for(var i:Number=0; i<resultSize; i++)



      var tempFPERS:voFISCPERS = resultList[i] as voFISCPERS;








      Here is my mxml code that tries to bind the data to a combo box using an item renderer in a data grid





      headerText="From Fiscal Period">






      <mx:ComboBox dataProvider="{fpers}" />








      The above gives me the error : 1120: Access of undefined property fpers.


      Can anyone shed some light please?