CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 user activity logging

Print topic Send  topic

Author Message
kirchaj

Posts: 215
Posted: 08/17/2016, 2:31 PM

Has anyone implemented activity logging in a CCS application? I am not sure to what extent the customer wants to log employee activity, but I thought maybe someone had already created this for another app and could give me some ideas.

Thanks.
Tony
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 08/18/2016, 3:39 AM

timestamped inserts into log tables - custom code in the after insert, after udpate, and delete events
_________________
Central Coast, NSW, Australia.

View profile  Send private message
eratech


Posts: 513
Posted: 08/19/2016, 1:28 AM

@kirchaj - I have a similar method as MichaelMcDonald. I just put a common function in so all I need to do in the After Insert etc is a Call Function and use the same function and maybe pass a flag for 'insert' or 'update'

I also use that function to set the display of a "Item as been Saved" flash-message (not 'Flash', just 'short lived message')

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
ccsminer

Posts: 159
Posted: 08/22/2016, 8:35 AM

It's helpful to add create/update timestamp fields, as well as the active user ID, to each of the tables where logging is required. It's simple and effective, and taken care of during record inserts and updates automatically.

For more extensve auditing, use a seperate audit table to keep track of what users did and to which tables.
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 http://support.yessoftware.com.

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login


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