jdu98a Posted April 21, 2010 Posted April 21, 2010 I came up with a really handy way to document any and all changes that a user makes manually to any field. Basically, any field that I need to be tracked has an [color:gray]OnObjectSave script trigger assigned to it with the script parameter set to [color:gray]Get ( ActiveFieldName ). From here my script simply sets a field named ChangeHistory to: Get ( CurrentTimeStamp ) & " - " & TextStyleAdd ( Get ( ScriptParameter ); Bold ) & " modified to: " & TextStyleAdd ( GetField ( Get ( ScriptParameter ) ); Bold ) & " - " & Get ( AccountName ) & ¶ & TableName::ChangeHistory This results in a neat and tidy documentation of the record change that looks like this: 4/21/2010 10:04:04 AM - PhoneNumber modified to: 555-555-5555 - Admin This all works fine. However, my trouble starts when changes are made to multiple records (as often happens) via a file import. The import most often matches up one or more fields and then modifies any number of other field values as needed. I would like to be able to track any and all changes made by these imports as accurately and in the detail that I am able to track manual changes. Any ideas?
comment Posted April 21, 2010 Posted April 21, 2010 Use auto-enter instead of script trigger. Do a search for "audit log" for more.
Recommended Posts
This topic is 5680 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now