Can you mention some examples of usage of these methods? Just to understand it some more?
On Jul 22, 2:19 am, Marco van den Oever <[email protected]> wrote: > Mmmm ok, right now i do it with: > > <ft:processFormObjects typename="invoices_reseller" > bSessionOnly="true" /> > > <!--- if a invoices_reseller object was succesfully saved ---> > <cfif len(lSavedObjectIDs)> > > <!--- set the invoices_reseller object data from session to variable > ---> > <cfset invoices_reseller = getData(objectid=lSavedObjectIDs) /> > > So by using aftersave i could replace that code with the aftersave > stuff, if i don't have to change any properties manually to the > submitted invoices_reseller objects, that would be an easier way to do > what i need. > > Only reason i use above code is so i can fetch the values and use them > to update the corresponding invoices_customer item. > > Thanks. > > On Jul 22, 1:10 am, AJ Mercer <[email protected]> wrote: > > > in the type class there is also a afterSave() method that gets fired > > there is a beforeSave() too > > > 2009/7/22 Marco van den Oever <[email protected]> > > > > Never mind, got it, i was stuck with thinking in the usage of > > > ft:processFormObjects, but of course i just can create an object and > > > do a setdata in the ft:processForm action="Save". > > > > On Jul 21, 9:20 pm, Marco van den Oever <[email protected]> > > > wrote: > > > > I have two types, invoices_customer and invoices_reseller. > > > > Those 2 types have both a column named "customerstatus". > > > > > When i edit a invoices_customer item and set the "customerstatus", i > > > > want that value to be updated with that value in the invoices_reseller > > > > type also. > > > > > What's the best way of doing this? > > > -- > > AJ Mercer > > Web Log:http://webonix.net > > --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~---
