glad it worked for you ;)
On 8/14/06, Tom Woestman <[EMAIL PROTECTED]> wrote:
Thanks that did it!
Now, I would swear I tested that and it did not work the first time ...
Tom
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clint
Tredway
Sent: Monday, August 14, 2006 1:11 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] Flex question
change this employeeSrv.lastResult.user
to this employeeSrv.lastResult.data.user
On 8/14/06, Tom Woestman <[EMAIL PROTECTED]> wrote:
>
>
>
>
> 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="xmldata.xml"
>
> 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/
>
>
>
--
diabetic? http://www.diabetesforums.com
Albert Einstein - "It's not that I'm so smart, it's just that I stay
with problems longer."
_______________________________________________
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/
_______________________________________________
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/
--
diabetic? http://www.diabetesforums.com
Albert Einstein - "It's not that I'm so smart, it's just that I stay
with problems longer."
_______________________________________________
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/