This content has been marked as final. Show 5 replies
I have done a few little Flex-CF apps, both with CFMX7 and CF8, which run with no problems on my 'localhost' and on my shared web server. I have never had to touch 'services-config.xml'.
You should read this: http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html.
Also, I have a little Flex2/CF8 project running now on my web site, which you might want to refer to for the code - http://www.timos.com/timos/greenEarth/GreenEarth.html. View source is enabled.
I hope this helps you.
OK, its beginning to make a little sense if I am correct. In the first example from livedocs
<mx:RemoteObject id="userRequest" destination="ColdFusion" source="flexapp.returnusers">
Is the 'source' attribute a dot notation from the root of the site? I.E. the address for the cfc would be /flexapp/returnusers.cfc?
If your cfc is 'yourdomain.com/flexapp/returnusers.cfc', in you RemoteObject, it would be source="flexapp.returnusers". Note that you do not use the '.cfc' extension in these dot notated paths.
Yeah, use CFC in my CF dev so I know about dropping the cfc. Thanks for the info. Hopefully I'll have data flowing through my app soon.
One other question if you know. Can you return a query to Flex? I see in that first example that his returntype for the CFC is query. Would it be treated as an Object/Structure in Flex?
OK, projectproofing, I do what I can to help, but keep in mind that I myself am pretty new at this too.
Yes, you can bind a query returned to Flex to a dataProvider or to something else. In most examples I have seen, the object returned by the cfc is cast as an ArrayCollection.
I found this tutorial valuable – it explains in simple terms some of the concepts we are dealing with: http://www.kylehayes.info/captivate/QueryToDatagrid/QueryToDataGrid.htm.
I hope this helps.