David Brown wrote:
>But not sure I understand how to convert this from flash to cfform flash
>action script. It seems that you have to convert the query to an array (did
>that with the udf they suggest) and then assign the results to a new object
>in your action script something like var employeelist = {};
>And then use the new object holding the results to the grid like
>gridname.dataProvider = employeelist;
>
>But this does not work. It gives me an empty grid.
>
>
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216990
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