Customizing Timestamping
By default, each time a new entry is added to the timestamp log, a line that looks like this is added:
December 11,2001 4:38 PM analyst (New)
You can customize the way the timestamp log is formatted by editing MoveControlData() in Js\CustomCode.js. For example, you can insert a line of dashes to separate entries, add tabs (\t), or add more line breaks (\r):
objTargetControl.value="--------------------------------\r" +
getDateTime() + "\r" +
objSourceControl.value + "\r\r"
objTargetControl.value + "\r";
where:
getDateTime() returns a string that includes the date, time, name of the current user, and current value of the Progress field.
objSourceControl.value is the new input to add to the timestamp log
objTargetControl.value is the content of the timestamp log.
Related Topics