Hello Shannon :)
Yes, I am doing precisely that. I was trying to avoid
posting code, but it's the easiest way to show you everything I am trying to
do. You can assume too, that yes I am bringing back a valid RecordSet from
ColdFusion, and the FieldNames match up exactly with what was brought
back. Since the data is all there, Flex for some reason, is not iterating
through all the data and parsing it out properly. I just have a hard time
with this - since this works fine with my Flash Remoting app, and that I am
bringing back a native Query Object from ColdFusion. I must be missing
something, or am not properly casting something. As far as I can tell, I
am properly coding the Grid Columns - but maybe I am not... One last thing
- I am running something similar to Flash's NetConnection Debugger - and I am
for sure getting back a valid response from the CF Server - an Array of Objects,
all properly formatted and casted.
If you could shed further light, as to why no data shows up
in my DataGrid when the app runs, I'd be very grateful :)
Thanks - Mike
=====================================
<?xml version="1.0"
encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="remoteService.getCategories()"> <mx:Script> <![CDATA[ import mx.rpc.events.*; import mx.collections.*; [Bindable] public var categories:ArrayCollection; public function getCategories_Handler(event:ResultEvent):void { categories = new ArrayCollection(event.result as Array); } ]]> </mx:Script> <mx:RemoteObject id="remoteService" destination="ColdFusion" source="infonexus.services.infoNexus" showBusyCursor="true"> <mx:method name="getCategories" result="getCategories_Handler(event)"/> </mx:RemoteObject> <mx:Panel left="10" top="10" bottom="10" right="10" title="Welcome to the Information Nexus"> <mx:DataGrid id="categoriesGrid" dataProvider="{categories}" width="100%" height="100%" borderStyle="none"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="Icon ID" dataField="IconID" /> <mx:DataGridColumn headerText="Icon Filename" dataField="IconFileName" /> <mx:DataGridColumn headerText="Icon Name" dataField="IconName" /> </mx:Array> </mx:columns> </mx:DataGrid> </mx:Panel> </mx:Application> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks Sent: Thursday, July 27, 2006 12:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How does Flex 2.0 handle ColdFusion Query results? When you get a query back from a CFC via the flexgateway,
you should cast it as an ArrayCollection right there...
someFunction(event:EventResult):void {
myArrayCollection = event.result as
ArrayCollection;
}
Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Thursday, July 27, 2006 12:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How does Flex 2.0 handle ColdFusion Query results? Hello All, -- -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- [flexcoders] How does Flex 2.0 handle ColdFusion Query resu... Mike Anderson
- RE: [flexcoders] How does Flex 2.0 handle ColdFusion Q... Shannon Hicks
- RE: [flexcoders] How does Flex 2.0 handle ColdFusion Q... Mike Anderson
- RE: [Junk E-Mail - LOW] RE: [flexcoders] How does ... Shannon Hicks
- Re: [flexcoders] How does Flex 2.0 handle ColdFusi... Dekayd
- RE: [Junk E-Mail - MED] Re: [flexcoders] How d... Shannon Hicks
- Re: [flexcoders] How does Flex 2.0 handle ColdFusi... Dave Carabetta
- RE: [flexcoders] How does Flex 2.0 handle ColdFusion Q... Mike Anderson
- Re: [flexcoders] How does Flex 2.0 handle ColdFusi... Mike Nimer
- RE: [Junk E-Mail - LOW] Re: [flexcoders] How d... Shannon Hicks
- Re: [flexcoders] How does Flex 2.0 handle ColdFusi... Dave Carabetta
- Re: [flexcoders] How does Flex 2.0 handle Cold... Mike Britton
- RE: [flexcoders] How does Flex 2.0 handle ColdFusion Q... Mike Anderson