I released a set of custom tags to allow for process creation. Process creation is just a complex way of saying a multi-step form. The tags are based on the PLP service of the old Spectra software. Basically, it means you can worry more about your step code and less about the mechanics of the process. The tags take care of remembering where you are in the process and create a scope you can use through the process. This makes it easy to build multi-step edit forms or shopping carts.
The code is 100% free. All I ask is that if you use it, you let me know so I can take a look. Also, if you find any bugs, or have any suggestions, please email me.
The code can be downloaded here.
Archived Comments
Hi Ray,
I am getting the following error on the example 1:
Cannot set variable with name . The variable name is illegal. Variable name must start a letter and can include only letters, numbers and underscores.
The Error Occurred in C:\CFusionMX\wwwroot\formProcess\plp.cfm: line 15
13 : <cfparam name="attributes.r_bComplete" default="" type="variableName">
14 :
15 : <cfif len(attributes.r_bComplete)>
16 : <cfset setVariable("caller.#attributes.r_bComplete#",false)>
17 : </cfif>
Example 2 works ok.
Any ideas?
The r_bComplete="done" seems to be missing as an attribute of the cfModule tag in test.cfm of the first example..
If I include r_bComplete="done", it works.
Hilary
--
For your first comment, r_bComplete is optional - the first test doesn''t use it. As for your second example, I think I may have set it up so that if you DON''T pass it, you get the error. I''ll take a look a bit later tonight. The correct behavour is that it should be optional.