8 Replies Latest reply on Sep 2, 2011 2:35 PM by BK_POHS

    having trouble iterating through dataGroup of spark list.

    BK_POHS

      Here's a snipped of my code, but I'm trying to access a method called validate, which is part of a view inside the item renderer of two nested lists.  When I debug and hover over the dataGroup property, it appears there is a memory allocation, yet when I go into lst_modules I can see properties like dataProvider but not dataGroup.  Also when I throw in break points and debug through...it seems to skip right over this block which makes me think its just not able to access the dataGroup for some reason.  What am I doing wrong?

       

      for each(var modR:ModuleRenderer in lst_modules.dataGroup)

      {

           var m:ModuleEditor = modR.moduleEditor;

       

          

           if(m.validate != true)

                isValid = false;

                break;

       

           for each(var qRend:QuestionEditorRenderer in m.lst_questions.dataGroup)

           {

                var q:BaseQuestionEditor = qRend.baseQuestionEditor;

       

               

                if(q.validate != true)

                     isValid = false;

                     break;

           }

           break;

      }