Jalz Posted October 15, 2009 Posted October 15, 2009 Hi Guys, Just wondered if anyone has a improved example (using cript triggers?) of audit logging with the features of FileMaker Pro 10. So far I've looked at Excelisys and Nightwing's examples, both very good but all edits are stored in one field within the record. I was hoping to log changes in a seperate Table called Audit for instance and generate a record in that table with the old value and the current value, date, time and username of the edit. Thanks
Matthew F Posted October 16, 2009 Posted October 16, 2009 I would guess you could create a script that triggers 'OnObjectModify' and creates new audit records for you. If you create a new audit record for each change won't you end up with a huge audit file? It will soon dwarf the size of your database. The advantage of having a single audit field is that it keeps things nice and compact. You could also dump the audit log to a local text file periodically to prevent it from getting too huge.
Steven H. Blackwell Posted October 16, 2009 Posted October 16, 2009 Event triggers probably ought not be used for auditing purposes. Take a look at fmDataGuard 2 from WorldSync. It creates real audit logs. Steven
Matthew F Posted October 17, 2009 Posted October 17, 2009 triggers probably ought not be used How come?
Vaughan Posted October 17, 2009 Posted October 17, 2009 Script triggers are linked to an interface. If the underlying table is accessed from any other interface the audit records won't be created. It's easy to access a table from another interface.
Steven H. Blackwell Posted October 17, 2009 Posted October 17, 2009 Becasue, in addition to what Vaughan said, they are just not reliable. They can also materially degrade performance of the system. Go look at fmDataGuard as I mentioned yesterday. Steven
Recommended Posts
This topic is 5517 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