Here you go...

In one template...
<!--- create and populate your array --->
<cfset myarray = arraynew()>

<cfset myarry[1] = "something">

<!--- serialize array --->
<CFWDDX INPUT="#myarray#" OUTPUT="Client.MyWDDX" ACTION="CFML2WDDX">

In the other template that you need to reference the array...
<!--- deserialize array --->
<CFWDDX INPUT="#Client.MyWDDX#" OUTPUT="myarray" ACTION="WDDX2CFML">

<!--- Now you reference the array by name --->
<cfoutput>#myarray[1]#</cfoutput>

I tested this with clientmanagement=yes in cfapplication tag and in cfserver
set a db for client variables, using MSAccess2000.

Mike.

-----Original Message-----
From: zknoll [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 17, 2000 9:12 AM
To: [EMAIL PROTECTED]
Subject: Can I put a wddx packet into a database and read it back out?



I have an 2-D array of information that I convert into a wddx packet to
pass between templates but I would also like to be
able to store the packet into a database and read it out again. A) Is
this possible? B) Is it possible with access 200 as the
backend database? C) If A and B are true can you show me a snippet of
code as to how this would be done?

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to