I have a custom type -- tlConferenceRegistration
It has a detail array -aDiscounts, of type: tlConferenceRegDiscount.
I have a Wizard to create the tlRegistration. In the wizard I am using the
bSessionOnly functionality to create aDiscount records.
When the user clicks to save the wizard data, how can I convert the session
objects to database objects? I need to do it without changing the objectIDs
since those IDs are already added to the aDiscount array.
This is how I'm trying to do it -- but the tlConferenceRegDiscount records
are not going into the database.
<wiz:processWizard step="Participant Details">
<cfset lDiscounts="">
<ft:processformobjects typename="tlConferenceRegDiscount"
bSessionOnly="1">
<cfset lDiscounts=listappend(lDiscounts,stProperties.objectid)>
</ft:processformobjects>
<wiz:processWizardObjects typename="tlConferenceReg">
<cfset stProperties.aDiscounts=listToArray(lDiscounts)>
</wiz:processWizardObjects>
</wiz:processWizard>
<wiz:processwizard action="Save Registration" Savewizard="true" Exit="true">
<wiz:processWizardObjects typename="tlConferenceReg">
<cfset stProperties.status="approved">
<cfset regdiscountType=createobject("component",
application.stcoapi.tlConferenceRegDiscount.packagepath)>
<cfloop from="1" to="#arraylen(stproperties.aDiscounts)#" index="i">
<cfset stD=regdiscountType.getData(stProperties.aDiscounts[i])>
<cfset regDiscountType.createData(stD)>
</cfloop>
</wiz:processWizardObjects>
</wiz:processWizard>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---