Hi,

I had the above process working at some point (with help from Flex 
coders on this message board), but for unknown reasons, it has stoped 
working.  Quite simply, my CFC returns an array of structures and I'd 
like it to populate a data grid.  Any help would be greatly 
appreciated.  Many thanks, Darius

Result Set returned by CFC
---------------------------

Result (object #2)
.....[0] (object #3)
..........Description: "Services"
..........Function: "Apply                    "
.....[1] (object #4)
..........Description: "User Authorizations         "
..........Function: "Authorization"
.....[10] (object #5)
..........Description: "location"
..........Function: "Location"
.....[11] (object #6)
..........Description: "CMS"
..........Function: "CMS"

Flex code
------------
var RecordSetModel;

private function doResult(event:Object):Void{
RecordSetModel = event.result._items;
}

<mx:RemoteObject id="ro" 
endpoint="http://gx270dev.net/flashservices/gateway"; 
source="Model.mUtilities.mUpdate.fx_UpdateAuthorization" 
fault="mx.controls.Alert.show(event.fault.faultstring)" 
showBusyCursor="true">
                <mx:method name="invUpdateAuthorization" 
result="doResult(event.result)"/>
        </mx:RemoteObject>
        
        <mx:Panel width="100%" title="Forms" height="22%">
           <mx:DataGrid id="UpdatesDG" width="166" height="156" 
wordWrap="true" dataProvider="{RecordSetModel}">
                         <mx:columns>
                                  <mx:Array>
                                        <mx:DataGridColumn 
width="200" headerText="Update Form" columnName="Function"/>
                                        <mx:DataGridColumn 
width="320" headerText="Description" columnName="Description"/>
                                   </mx:Array>
                         </mx:columns>
                </mx:DataGrid>
                <mx:Button label="Get Records" click="doClick()"/>
        </mx:Panel>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to