Mike Nimer's original code is here (saves you separating the stuff from FarCry):
http://sourceforge.net/projects/cmstoolkit/
And there is an advanced tutorial here: Conditional PLPs http://farcry.daemon.com.au/go/documentation/developers/tech-notes
If you have to build a multistep form this code makes it a dream. But then again I may have read your message all wrong ;)
-- geoff http://www.daemon.com.au/
Kay Smoljak wrote:
Hey everyone,
Here’s an interesting pickle... I'm trying to loop over a complex structure containing structures of arrays of structures. Trick is, one of the structure names is dynamic.
I can do this: <cfloop list="#StructKeyList(validation.registration.step1)#" index="field">
But "step1" (which is a structure, containing a couple of simple values and an array of structures) might actually be "step2". I tried this:
<cfparam name="currentstep" default="2"> <cfset structkey = "validation.registration.step#currentstep#"> <cfloop list="#StructKeyList(evaluate(structkey))#" index="field">
Which gives me the error "Complex object types cannot be converted to simple values."
Any ideas? I'm spewing because I thought I had it all worked out syntactically (it parses, then stops when a variable is not defined) but when I feed real data through it barfs. My brain hurts :(
Thanks, Kay.
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
