<mx:DataGrid dataProvider="{employeeSrv.lastResult.user}" width="100%">
to
<mx:DataGrid dataProvider="{employeeSrv.lastResult.data.user}" width="100%">
Good afternoon all,
I have a simple flex app that I am trying to test and the application opens but the datagrid does not populate as I am expecting. The code and the xmldata.xml file contents follow. Note that through the debugger I could see that the xmldata.xml file is being loaded – just not displayed. Any ideas what I am missing?
Thanks,
Tom
CODE:
<?xml version="1.0"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" verticalGap="20" creationComplete="employeeSrv.send()">
<mx:Script>
<![CDATA[
import mx.utils.ArrayUtil;
function doIt () {
employeeSrv.send();
}
]]>
</mx:Script>
<mx:HTTPService
id="employeeSrv"
url="" "
useProxy="false">
</mx:HTTPService>
<mx:Button label="Get Employee List" click="doIt()"/>
<mx:DataGrid dataProvider="{employeeSrv.lastResult.user}" width="100%">
<mx:columns>
<mx:DataGridColumn dataField="id" headerText="id"/>
<mx:DataGridColumn dataField="fname" headerText="fname"/>
<mx:DataGridColumn dataField="lname" headerText="lname"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
xmldata.xml file:
<?xml version= "1.0" ?>
<data>
<user>
<id> 1 </id>
<fname> Tom </fname>
<lname> Woestman </lname>
</user>
<user>
<id> 2 </id>
<fname> Josh </fname>
<lname> Giese </lname>
</user>
</data>
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/
--
Marlon
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
