Yes and no.
I also found this.  This is what I am doing.  At page load I invoke a cfc to
query a table and return it to the grid.  Then I use a button onclick to 
call a
remote cfc make the same query again, but with a different where statments
(column = 0 or =1).  Then I make changes to the grid again and send the data
back this is where the error comes in.  I can send data the first time 
without
issue.  But after the remote call to the query to update the grid and my new
edits I can't send the data back.

 I found this.
 "Using ColdFusion in concert with the DataGrid component is a great way to
 introduce the merits of the facade pattern. Most CF developers are quite
 familiar working with recordsets in CF. While it is possible to pass
 recordsets from ColdFusion to Flex, Flex is much happier working with 
arrays
 of structures. First, the performance of arrays of structures is far
 superior to recordsets in the Flash player. Second, while Flash Remoting 
can
 accept a recordset from CF and even use it as a dataprovider for a 
DataGrid,
 you will receive an error ("Unsupported type found in stream") upon trying
 to pass the same structure back to ColdFusion via Flash Remoting. "
 from

http://tomlink.net/blog/index.cfm?mode=cat&catid=7E72EF76-7E97-A3B0-E8BC2E4C92D891C7

Thanks for your help.

> I'm feeling pretty ropey today, so I'm afraid this isn't an answer to
> your question David, just a stream of conciousness from the stuff I've
> been messing with over the past couple of days......
>
> When you pass myGrid.dataProvider to a cfc it comes back as an Array of
> Struct in the cfc.
> myGrid.dataProvider needs a query object back from the cfc to be able to
> populate it.
> The query you get back from the cfc should be the same as the query
> originally used to populate the grid when the form is first loaded.
>
> Here's the AS Fusion article on populating a cfgrid from a query from cfc 
> :
> http://www.asfusion.com/blog/entry/populating-a-cfgrid-with-flash-remoting
>
> On submitting the form I've discovered that all the grid are coming back
> to the action page as empty, so to save myself the future heart/head
> ache of working out what cfform is doing this time I've just ended up
> resorting to submitting the form through a cfc.
>
>
> Hope that helps at all...
>
> Stephen
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217086
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to