Hi! [Pardon the length of this email. The question really isn't that long,
I've just included some code chunkies for context.]
I've written a PLP to edit an object. The PLP works in its current, basic
form (you can use it to edit some of the attributes of the object), however,
as it's a complex object, I need one of the steps of the PLP to iterate.
This is where I'm experiencing the problem. When you click one of the
buttons to iterate the page, this code runs...
<CFA_controlHandlerEvent NAME="edit_question">
<!--- default form processing here --->
<CFSET output[thisstep.name] = StructNew()>
<!---
--------------------------------------------------------------------
notify the output struct about the form values just
submitted --->
<CFPARAM NAME="Form.Showresults" DEFAULT="1">
<CFSET output.Showresults = Form.Showresults>
<CFSET output.Title = Form.Title>
<CFIF Form.Objrefid is not "">
<CFSET output.Objrefid = Form.Objrefid>
</CFIF>
<!--- mark this step as incomplete --->
<cfset thisStep.isComplete = 0>
<!--- don't let the plp autoadvance --->
<cfset thisStep.advance = 0>
</CFA_controlHandlerEvent>
..this works great. The page reloads, I display the contents of Title, etc
in non-editable form, and the value are right. At this point, you can edit
the question and, when you click Save, this code runs...
<CFA_controlHandlerEvent NAME="save_question">
<!--- default form processing here --->
<CFSET output[thisstep.name] = StructNew()>
<!---
--------------------------------------------------------------------
notify the output struct about the form values just
submitted --->
<CFSET output.aquestion[form.header.save_question].Body = Form.Body>
<CFSET output.aquestion[form.header.save_question].Responsetype =
Form.Responsetype>
<!--- mark this step as incomplete --->
<cfset thisStep.isComplete = 0>
<!--- don't let the plp autoadvance --->
<cfset thisStep.advance = 0>
</CFA_controlHandlerEvent>
..this also works great. The page reloads and the Body and Responsetype
just submitted are redisplayed in non-editable form. The problem is that,
now output.Title has reverted to its original value.
It's important to note that output.Title works just fine when it gets
processed through the "standard" Next handler...
<CFA_controlHandlerEvent NAME="next">
<!--- default form processing here --->
<CFSET output[thisstep.name] = StructNew()>
<!---
--------------------------------------------------------------------
notify the output struct about the form values just
submitted --->
<CFPARAM NAME="Form.Showresults" DEFAULT="1">
<CFSET output.Showresults = Form.Showresults>
<CFSET output.Title = Form.Title>
<CFIF Form.Objrefid is not "">
<CFSET output.Objrefid = Form.Objrefid>
</CFIF>
<!--- mark this step as complete --->
<CFSET continue = true>
<cfset thisStep.isComplete = 1>
<!--- let the plp autoadvance --->
<cfset thisStep.advance = 1>
</CFA_controlHandlerEvent>
..so, my question is, how do I get the PLP to "remember" or "commit" the
output struct within iterative calls to the same step the way it does when
you're moving between steps?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.