If you are only dealing with 20-30 items it would be faster to write a
bunch of conditionals instead of trying to find or develop something
generic. If you are going to reuse this throughout the site then
making a generic function would be more worth the investment.

-Mike Chabot

On Wed, May 26, 2010 at 6:27 PM, Gerald Guido <[email protected]> wrote:
>
> Here is the situataion: The user submits a form to edit a record from the
> database and I want to capture the changes that were made and send them off
> in an email. Does anyone know of an easy(ish) way to compare the original
> data set (be it saved as a query row, bean, structure,array etc.) with the
> potentially updated data and then sniff out and report the individual
> changes with out writing a boat load of conditional logic? There are about
> 20 or 30 individual items I want to check for and all of them come from a
> single database record and all of the form fields are named the same as the
> database columns.
>
> I am on CF 7 Pro and MSSQL 2005.
>
> Many TIA.
>
> G!
>
> --
> Gerald Guido
> http://www.myinternetisbroken.com
>
> "Wait. We can't stop here. This is bat country."
> -- HST
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334026
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to