How can I simplify the Audit-Trail and still keep all the values?
From:
Jo A Wahle
Subject:
How can I simplify the Audit-Trail and still keep all the values?
Date:
Tue, 2 May 2006 16:37:59 -0500
For one of the groups that I'm working
for, the main field in the PR is a multitext field, which means the Audit-Trail
gets quite long since it shows the old value and the new value. So I modified
the audit-trail-format to just show the new value. This makes the e-mails
cleaner and the Audit Trail shorter and cleaner, too.
The only problem is, I can't keep the
very first values of the fields. After the first change to each field,
the Audit Trail has all of the previous values, but it doesn't have the
first one. I was having trouble adding to the Audit Trail (it may be related
to PR # 551, I think), so I added a new field called Original-Values and
I'm trying to write to that using a global on-change, but I can't save
the original values. Even though I used "oldpr:<fieldname>"
for all of the fields in the [fieldlist], I get the new values, not the
old values.
Is there some other way I can get the
Audit Trail (and the e-mails) to show just the new values of the fields,
but still have the full history going back to how the PR was originally
submitted?
--
Jo Wahle, Software Engineer, Engineering Support, SAIC
(Science Applications International Corporation – www.saic.com)
Contractor to U.S. Geological Survey – EROS, Sioux Falls SD 57198
(Earth Resources Observation and Science – eros.usgs.gov)