The place to do this is in the TO's, for example..
<cfcomponent hint="I am the database agnostic custom TO object for the Order
object. I am generated, but not overwritten if I exist. You are safe to
edit me."
extends="reactor.project.foo.To.OrderTo">
<!--- Place custom code here, it will not be overwritten --->
<cfset this.DateCreated = now() />
</cfcomponent>
Chris
2008/6/18 Jamie Jackson <[EMAIL PROTECTED]>:
> Where's the most appropriate place to put a default value for a Record
> property?
>
> There are several places I can think of to do it: The view (not
> reusable; view needs to be smart), the TO, and the Record.
>
> Say I want an Address's stateId to default to "1" (US), where's the
> best place (in the model) for this? If it "depends," please help me
> understand what those dependencies might be?
>
> Thanks,
> Jamie
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>
>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --