Groups | Blog | Home
all groups > coldfusion flash integration > august 2006 >

coldfusion flash integration : Flex datagrid not populating anymore


FusedMonkey
8/4/2006 1:04:07 PM
Original CF server version: [b]7,0,1[/b]
Flash version: [b]9[/b]

After installing ColdFusion MX 7 Updater 2, I am unable to populate a SWF
datagrid that was compiled from Flex 1.5.

We call a ColdFusion CFC by passing in 4 arguments to the cffunction. The
function then returns a struct that looks like: myStruct[n]["something"].

On a ColdFusion MX server that is running version 7,0,0 AND 7,0,1 the flash
debugger tells me that the CFC is returning an Array (when in actuality, it's a
Struct) and the datagrid works great. However, after installing Updater 2,
without making any code changes, the flash debugger tells me that the CFC is
returning an Object of objects (i.e., the new untyped object) and so the
datagrid is never populated (but data IS being passed back).

I did find a solution that required a code change to both the compiled Flex
SWF and the CFC via the following website:

http://www.cflex.net/showFileDetails.cfm?ObjectID=303&Object=File&ChannelID=1

I work with 2 other developers who actually wrote all of the code and they are
against the idea of having to change our code in both areas because we have
over 20 client's that each have their own compiled SWF. It would take WAY too
long to have to recode and recompile each SWF.

I was wondering if it would be possible to solve this problem by installing a
different version of the Flash Remoting components (the version that is
installed from CFusion 7,0,0 or 7,0,1). If so, which version? I don't know
exactly what was installed by Updater 2 but I read that the Flash Remoting
services was also updated to support AS3.

What solution(s) is/are available to me that doesn't require a complete
rewrite of our Flex code?
Nick Watson
8/4/2006 9:59:09 PM
If you really do not want to to rewrite any of your code then your best option
would be to roll out of the 7.0.2 updater
you can find a walk through
http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_install.htm
l#uninstall
FusedMonkey
8/4/2006 10:06:44 PM
Thank you Nick for your reply. You're not going to believe this but....I did
try that and after the rollout and confirming I uninstalled 7,0,2 properly
(back to version 7,0,1) my flex apps still didn't populate the datagrid like
before. That's why I was wondering if I could install a different version of
the flash remoting components after installing the updater. It appears that
after that flash remoting files are overwritten during the installation of
Updater 2 but are not reverted back to their original state after the uninstall
of Updater 2.

I ended up having to reinstall ColdFusion MX 7 in order for my Flex apps to
work properly.
AddThis Social Bookmark Button