As a devotee of db client vars for holding WDDX packets, I tried something
recently...
Normally, I'll create a variable, say "squid", and store a structure in
squid. Then I'll make client.squid, which will hold a WDDX packet of squid.
This also works with an array, so if squid is an array of structres, all is
well.
HOWEVER, to see if it would make a difference, on a new app, I tried pushing
squid into the request scope, such as request.squid=structure,
client.squid=WDDX of structure.
This worked great, -except- if I tried an array of structures. It would
never work. I kept getting the error about "The object SQUID is not present
in the scope named REQUEST". Ugh.
I decided to try the variables scope. Same thing. But if I try no scope at
all, it works fine.
IF request.squid=array of structs, FAIL
IF variables.squid=array of structs, FAIL
IF squid=array of structs, PASS
Go figure.
Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists