1 Reply Latest reply on May 15, 2007 12:35 PM by eighty1

    accessing nested child in model to populate datafield in datagrid.

      I am using Rails + Flex and I have problems to access nested xml in a datagrid.datafield.
      I reproduce this in a simple mxml sample:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="954">
      <mx:Model id="md">
      <mx:DataGrid id="myGrid"
      dataProvider="{md}" >
      <mx:DataGridColumn dataField="e1"/>
      <mx:DataGridColumn dataField="e2"/>
      <mx:DataGridColumn dataField="child"/>
      <mx:DataGridColumn dataField="child.c1"/>
      <mx:DataGridColumn dataField="e3"/>

      Basically, at runtime the content of 3rd column is object (alright) and the 4th column is empty whereas it should be "c1".

      Am I doing something obviously wrong ?

      Thanks for any help.