David,
I think (if I'm wrong, please jump in and correct me guys) that the input
scope is basically used as a read only structure which retains it's form
throughout the plp. In some of my plps I need to check which fields the
user has changed from the original state, and I use the input struct for
that. Also useful for "cancel" buttons -
if for whatever reason you've made permanent changes to an object during the
course of a plp and a user cancels it, you can just resave over the original
with the input struct.
Well thats the kind of thing I use ot for anyways <g>
HTH
Toby
Toby Tremayne
Code Poet and Zen Master of the Heavy Sleep
Show Ads Interactive
359 Plummer St
Port Melbourne
VIC 3207
P +61 3 9245 1247
F +61 3 9646 9814
ICQ UIN 13107913
-----Original Message-----
From: David Aden [mailto:[EMAIL PROTECTED]]
Sent: Monday, 5 February 2001 8:57 AM
To: Spectra-Talk
Subject: plp question
A short PLP question -- within a PLP, you have access to the input and
output scopes. As I understand it, these are two independent scopes, i.e.
input is not copied to output at any point.
Our code has generally just used the output scope to build up the data we
need at the end of the PLP.
Is the input scope pretty much just used to pass data into the PLP at the
beginning? Under what kind of circumstances, if any, might you want to use
both the input and output scopes in a PLP?
Also, suppose I have pseudo code like:
cfset stinput = structnew()
cfset stinput.vars = values
<cfa_plp
...
stinput = "#stinput#"
...
>
This is the page from which the PLP is called so the above code runs each
time I submit a step of the PLP.
My question is -- is the "input" scope reset inside the PLP to #stinput#
every time a PLP step is submitted or is it only set once when the PLP is
instantiated?
Thanks!
david
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
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.