Thank you for all your help so far...
The plp is now being created (when i look in the webtop it is listed there)
however the steps in the plp aren't being executed. I've tried creating a
plp in two ways, both are below. What should I be writing to tell the
plpcreate.cfm to execute the steps?
Thanks!
***
PLPCREATE 1:
------------
<CFSCRIPT>
stDDO = StructNew();
stDDO.numberofpaths = "";
stDDO.variablename = "";
stDDO.variablevalue = "";
</cfscript>
<cfoutput>here</cfoutput>
<cfa_PLPCREATE
name="testplp_tmp"
stDDO="#stDDO#"
handlerRoot="/plps/myobplp/"
handlerRelativePath="/plps/"
iTimeout="15"
dataSource="#request.cfa.objectstore.dsn#"
r_bStructureWasCreated="bcreated"
r_objectID="plpid"
r_stOutput="stoutput" plpid="#CreateUUID()#">
<cfoutput>PLP Is created: #bcreated#<br>
stOutput: <cfa_dump var="#stoutput#"><br>
and<br>
PLP ID: #plpid#</cfoutput>
<!--- Dynamically create the steps in the PLP (2 in this case) --->
<CFSET steps = "NumberPossiblePaths.cfm,DefiningVariables.cfm">
<CFLOOP INDEX="c" FROM="1" TO="#ListLen(steps)#">
<cfoutput>Step:#c#<BR></cfoutput>
<CFIF c LT ListLen(steps)>
<!--- If this isn't the last step then create the PLP step,
linked to the next one --->
<cfa_PLPStepCreate
stepName="#ListGetAt(steps, c)#"
handler="#ListGetAt(steps, c)#.cfm"
logic="Run"
PLPID="#plpid#"
nextStep="#ListGetAt(steps, c + 1)#"
nOrder="#c#"
dataSource="#request.cfa.objectstore.dsn#"
r_bstepwascreated="bstepcreated">
<CFELSE>
<!--- If this is the last step then create the PLP step with
no next step --->
<cfa_PLPStepCreate
stepName="#ListGetAt(steps, c)#"
handler="#ListGetAt(steps, c)#.cfm"
logic="Run"
PLPID="#plpid#"
nOrder="#c#"
dataSource="#request.cfa.objectstore.dsn#"
r_bstepwascreated="bstepcreated">
</CFIF>
<cfoutput>Step created: #bstepcreated#</cfoutput>
</CFLOOP>
****
PLPCREATE2:
-----------
<cfa_page pagename = 'newplp' SectionName = 'newplp' siteName = 'plp'>
<cfinclude
template='/asd20/solution/coffee_valley/pagetemplates/pageheader.cfm'>
<cfinclude
template='/asd20/solution/coffee_valley/pagetemplates/pagebody.cfm'>
<cfparam name="PLPComplete" default="0">
<cfa_plp
plpid="16FB6F61-23EB-11D5-97F50080C8F5FAE5"
datasource="#request.cfa.objectstore.dsn#"
bdebug="True"
r_bplpiscomplete="PLPComplete">
<cfif PLPComplete>
<cfscript>
stProperties=StructNew();
stProperties.pathno=output.pathno;
stProperties.varname=output.varname;
stProperties.varvalue=output.varvalue;
stProperties.stepno=output.stepno;
stProperties.attr_active=1;
</cfscript>
<cfa_contentobjectcreate
datasource="#request.cfa.objectstore.dsn#"
typeid="16FB6F61-23EB-11D5-97F50080C8F5FAE5"
label="#output.pathno#"
stproperties="#stProperties#"
r_id="r_id" >
<cfa_contentobject
datasource="#request.cfa.objectstore.dsn#"
objectid="#r_id#"
method="display">
</cfif>
<cfinclude
template='/asd20/solution/coffee_valley/pagetemplates/pagefooter.cfm'>
</cfa_page>
****
Sadly both ways do not execute steps. I have tried these two ways of doing
it as I have heard it done in these two ways before.
Thank you...
Karling !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.