7 Replies Latest reply on Jun 9, 2009 4:46 AM by < the.atz />

    Cannot access arrayCollection's children in datagrid

    ftosello

      Hi Guys,

      I've got a Flex 3 application with an HTTPService returning an Atom feed. I catch the result from it and store it in an arrayCollection which is then the provider of my Datagrid.
      I have no problem accessing the data from the &quot;first-level&quot; of my Array, but cannot go under it.
      Not very clear, so here is some code:

      My XML [part of it]:

       

          <entry>
           <title>Test 2</title>
           <id>http://collaboration.*****.com/collaboration/messaging/feeds/****/todo//7D6637D3E86B3ED3C1 2575B***8479</id>
           <link rel=&quot;alternate&quot; href=&quot;notes:///C12575B4004***8/0/7D6637D3E86B3ED3C12575B6004E8479&quot; type=&quot;application/vnd.lotus-notes&quot;/>
           <published>2009-05-14T16:17:37+02:00</published>
           <updated>2009-05-14T16:17:56+02:00</updated>
           <clb:todo>
           <clb:uid>7D66***3ED3C12575B6004E8479</clb:uid>
           <clb:due>2009-05-31T12:01:00+02:00</clb:due>
           <clb:status>Not Started</clb:status>
           </clb:todo>
           </entry>

       

      My Datagrid Code:

       

          <mx:AdvancedDataGrid y=&quot;10&quot; id=&quot;notesGrid&quot; width=&quot;90%&quot; height=&quot;243&quot; designViewDataType=&quot;flat&quot; x=&quot;10&quot; selectionMode=&quot;multipleRows&quot; dataProvider=&quot;{notesArray}&quot; >
           <mx:columns>
            <mx:AdvancedDataGridColumn
             headerText=&quot;TITRE&quot;
             dataField=&quot;title&quot;
             fontWeight=&quot;bold&quot;
             />
            <mx:AdvancedDataGridColumn headerText=&quot;STATUT&quot; dataField=&quot;todo.status&quot;/>
           </mx:columns>
          </mx:AdvancedDataGrid>

       

      The &quot;title&quot; column shows the data correctly, but the status column is empty ! When I launch my app in debug mode, I can see that my notesArray has the correct format and I can access todo -> status with the value...

      I've been stuck on this for a few days, I'd appreciate any help !
      Thanks and best regards !!