Matthew,

I am still a little confused about the custom type AfterSave function. It is
definitely being called twice when an object is saved.

Here is the part of my form that saves objects:

<ft:processform action="Send Request">  
        <ft:processFormObjects typename="tlRFI">
                <cfoutput>Saving... </cfoutput>
        </ft:processformObjects>
        <cfoutput>#lSavedObjectIDs#</cfoutput>
</ft:processform>

When the form is submitted there is only one "Saving..." and only one
lSavedObjectID.

Here is the afterSave function from my tlRFI type:

<cfcomponent extends="farcry.core.packages.types.types" displayname="RFI"
hint="Request for Information" bSchedule="0" bFriendly="0"
bObjectBroker="false">

...

<cffunction name="afterSave" access="PUBLIC" hint="Send the Notification">
        <cfargument name="stProperties">
        
        <cfset super.afterSave(stProperties)>
        <cfoutput>AfterSave running... </cfoutput>
        
        <cfreturn stProperties />
</cffunction>

When the form is submitted, I see: AfterSave running... AfterSave running...


It doesn't matter if I remove the super.afterSave or leave it in -- the
function still runs twice. That becomes a problem when I want to send emails
in the AfterSave function.

Derek


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to