<!--- PROCESS WIZARD SUBMISSION Always save wizard WDDX data --->
<wiz:processwizard excludeAction="Cancel">
<!--- Save the Primary wizard Object --->
<wiz:processWizardprocesswizardObjects steptypename="Actions#stobj.typename#" />
<!--- Save any Action Types submitted (including any new ones) --->
<wiz:processWizardObjects typename="action">
<!--- Do not save the action if their is no title. --->
<cfif NOT structKeyExists(stProperties,'title') OR NOT len(stProperties.title)>
<wiz:break />
</cfif>
</wiz:processWizardObjects>
</wiz:processWizard>:processwizard>
<wiz:processwizard action="Save" Savewizard="true" Exit="true" /><!--- Save wizard Data to Database and remove wizard --->
<wiz:processwizard action="Cancel" Removewizard="true" Exit="true" /><!--- remove wizard --->
<!--- RENDER THE WIZARD --->
<wiz:wizard ReferenceID="#stobj.objectid#" r_stWizard="stWizard">
<wiz:step name="Report Details">
<wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#" lfields="title,meetingtime,meetingplace,aContacts,projectid" format="edit" intable="false" legend="Meeting Details" />
<wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#" lfields="description" format="edit" intable="false" legend="Minutes" />
</wiz:step>
<wiz:step name="Related content" autoGetFields="true" />
<wiz:step name="Actions">
<cfset qActions=getContactReportActions(stobj.objectid) />
<cfoutput><h3>Current Actions</h3></cfoutput>
<cfloop query="qActions">
<wiz:object objectid="#qActions.objectid#" wizardID="#stWizard.ObjectID#" lfields="title" r_stFields="stAction" />
<cfoutput><div>#stAction.title.html#</div></cfoutput>
</cfloop>
<!--- Render 3 new empty actions. Allows adding 3 actions at a time. --->
<cfoutput><h3>New Actions Arising</h3></cfoutput>
<cfloop from="1" to="3" index="i">
<cfset stDefault=structNew() />
<cfset stdefault.projectid=stobj.projectid />
<cfset stdefault.contactreportid=stobj.objectid />
<wiz:object
typename="action"
wizardID="#stWizard.ObjectID#"
format="edit"
lfields="title"
lhiddenfields="projectid,contactreportid"
bvalidation="false"
stPropValues="#stDefault#" />
<cfoutput><hr /></cfoutput>
</cfloop>
</wiz:step>
</wiz:wizard>
|