I want to add logging capabilities in my Lotus Notes application. Basically I want to be able to log who make the change, when the change is made, and what field(s) is/are changed in a document. What is the best way to do this? I am thinking to also add this at the end of each document so the user knows who make the changes.
相关问题
- Is Interop.Domino dll thread safe?
- Attaching multiple files through MIMEs to a docume
- dialog list lotus notes in xpages
- How to build a Lotus Domino Database using SVN and
- XPiNC 8.5.3 - Time Value shows Incorrectly
相关文章
- Sending email through lotus notes using excel VBA
- How to redirect webpage by Lotus Notes java agent?
- Lotus DB to SQL Server migration
- Lotus Notes Diff Tool
- Domino REST POST not working for Appointment - Not
- Getting SSLHandshakeException when using Dropbox J
- Access Control with a multi database application
- Can not attach debugger to HTTP JVM, AMGR JVM is a
I've done this before using LotusScript. It's a bit of a pain, but the basic idea is to:
You can create a field on the form to write these changes to, and just append to it each time.
Watch out for other event handlers that make changes everytime the document opens, though. You may need to copy original values in the PostOpen event, for example, if you change some fields in the QueryOpen event each time the doc opens, otherwise you'd get false change logs.
Hope this helps!
OpenNTF has several tools for this purpose that you could use, including Open Audit and Audit Manager.
A "brute force" approach can also work. Every time a document is saved, create a copy of that version to a (separate) database. This will build an audit trail of the documents. The documents can be compared to extract the changes.
There is quite some overhead in this approach, but in my experience it has been worth it. The implementation is simple and all changes are captured without affecting the actual document. All information that is needed is captured and available for (offline) processing.