CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> ColdFusion

 date/time stamp a record in an update

Print topic Send  topic

Author Message

Posts: 2
Posted: 03/06/2008, 12:44 PM

I have a date/time field which I would like to update whenever I edit the record. How/Where do I place my custom code in a Record component (built through Record Builder)?

View profile  Send private message

Posts: 283
Posted: 03/06/2008, 2:04 PM

Basically, I put two fields on the record referring to the same data element. One hidden, one label.
What I do is set the 'last_update_date' field as a hidden field on the record.
In the before update, do a CFSET fldLAST_UPDATE_DATE = Now().
I also add that code to the before insert.

I put on the record a label field that displays the last_update_date.
Label fields are not included in the sql insert or update so it was easier to just add a hidden field.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.