Hello all!

I'm new to Reactor, and definitely loving the framework and getting giddy about all of the repetition that it's going to save me and my team.

Question about how to best load a new record with values...

(I am using a fusebox controller btw...)

I have a fuseaction that is designed to save a record. I post a form to that fuseaction's url, so now I have all of my form variables (which follow the same naming conventions as my db) in a struct called attributes. Now I want to create a record object and load all of these values into the record in one fell swoop. IE...

<cfset application.reactor.createRecord('key').load( attributes ) />

I want to be able to this as opposed to running the setters for each form variable.

I know there must be a way to do this involving words that I don't quite understand yet such as transfer objects and beans...do I need to use ColdSpring or some other IoC deally to make this work? Fishing in the dark here....

Any suggestions?

Thanks!

--
Michael Haggerty
Internet Applications Developer
SiteVision, Inc.
<e>[EMAIL PROTECTED]</e>
<p>540.343.8322 x116</p>



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to