Skip navigation
voldy2003
Currently Being Moderated

Datagrid-Multiple child nodes of xml provide as dataprovider

Apr 23, 2013 6:35 AM

Tags: #xml #flex-4.6 #datagrid #flex4.5
<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"
 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points