0 Replies Latest reply on Jan 7, 2010 5:56 PM by rcanulla

    How do I find out how many times a date is in and array collection?

    rcanulla Level 1

      Hi there,


      I have an arrayCollection that has a bunch of articles in it. I am trying to figure out how many articles there are each day to power a line graph. Any thoughts on how I could easily do this?


      basically I need a method that will return how many times an item appears in and AC.


      Some code I am starting with (its wrong)

       if (fieldName == "yValue"){
           var count:Number = 0;
           for(var i:uint=0; i<_dataProvider.length; i++){
                var date:QueueItemVO;
                if (_dataProvider[i].itemDate == item.itemDate){
           return count;