Hi Mike,

Great idea.  I love it.

A small hint: you are converting your structure to a list, so you can loop 
over it.  List functions and list loops are known to be slower.  Why not 
just do this:

<CFLOOP collection="#formTemp#" item="formItem">


At 03:19 PM 2/8/01, Pellicciotti, Mike wrote:
>Here is code to save the FORM variables structure into a CLIENT WDDX
>variable, and then rebuild the FORM structure after a cflocation.  This is
>an easy way to save all the FORM variables submitted to an action page prior
>to the action page <cflocation> back to the display page.  Old news to many,
>but very handy when using cf_reuseform with the "form" option:
>
>Before cflocate'ing out of the current file act/url file .........
><cfwddx action="CFML2WDDX" input="#form#" output="client.form_variables"
>usetimezoneinfo="No">
><cflocation..........>
>
>Before calling cf_resuseform in the dsp file .........
><cfif isdefined("client.form_variables")>
>     <cfwddx action="WDDX2CFML" input="#client.form_variables#"
>output="formTemp">
>     <cfloop index="formItem" list="#StructKeyList(formTemp)#">
>         <cfset StructInsert(form,formItem,Evaluate("formTemp." & formItem),
>true)>
>     </cfloop>
></cfif>  <!--- modified from John Minor's cf_wddxtoformscope tag at
>allaire.com --->
>
>
>
>Mike Pellicciotti
>[EMAIL PROTECTED]   Lockheed Martin Systems Integration - Owego
>Phone: (607) 751-4948       1801 State Route 17C, MD 0220
>Fax:     (607) 751-2800       Owego, NY 13827
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to