0 Replies Latest reply: Apr 23, 2013 6:35 AM by voldy2003 RSS

    Datagrid-Multiple child nodes of xml provide as dataprovider

    voldy2003
      <QueueIndex>
      <id>
      <qixQltId>104</qixQltId>
      <qixIndexname>Branch</qixIndexname>
      <dixId>104</dixId>
      <qixSeq>1</qixSeq>
      </id>
      <qixIndexvalue>WFI_S_Branch</qixIndexvalue>
      <qixLength>255</qixLength>
      <qixType>S</qixType>
      <qixList>Y</qixList>
      </QueueIndex>
      i have the above xml which im providing to datagrid.
      <mx:DataGrid
      id="myDataGrid" dataProvider="{xmlObjectQFields.QueueIndex}">
      <mx:columns>
      <mx:DataGridColumn dataField="id.qixQltId" headerText="ID"/>
      <mx:DataGridColumn dataField="qixMand" headerText="Name"/>
      <mx:DataGridColumn dataField="qixReadonly" headerText="Desc"/>
      <mx:DataGridColumn dataField="qixLength" headerText="Map Value"/>
      <mx:DataGridColumn dataField="qixType" headerText="Region"/>
      <mx:DataGridColumn dataField="qixList" headerText="Sequence"/>
      </mx:columns>
      </mx:DataGrid>
      i get the first column as null.  but when i give dataField as "id" only  i get to see <id>contents in this tag/<id>i want to print "104"