﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Auditor Class</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 21 Apr 2026 13:23:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Auditor Class</title><link>http://forum.strataframe.net/FindPost25242.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Is anyone using the Auditor class?&lt;/P&gt;&lt;P&gt;I have added the following code to the BeforeSave and AfterSave business object events but nothing happens:-&lt;/P&gt;&lt;P&gt;Auditor.InsertAuditRecords(this);&lt;/P&gt;&lt;P&gt;I have enabled auditing for both the business object and the current user but the following returns false:-&lt;/P&gt;&lt;P&gt;Auditor.ShouldAuditDataChanges(this);&lt;/P&gt;&lt;P&gt;I think I am having another dumb moment but I can't see what is wrong.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Fri, 12 Feb 2010 10:54:37 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25969.aspx</link><description>Well, that is where I would go next, yes.  I really need to try and set this up to see if I can reproduce your results before I can tell you for sure what is going on.</description><pubDate>Fri, 12 Feb 2010 10:54:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25950.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
Sorry, I only just noticed your reply.&lt;br&gt;
&lt;br&gt;
The auditing tables do exist and I am able to programmatically add records to the event table by code such as:-&lt;br&gt;
&lt;br&gt;
MicroFour.StrataFrame.Security.Auditor.InsertAuditEvent("xxxx", "Audit event message...", SerializedBO)&lt;br&gt;
&lt;br&gt;
However, what doesn't happen is if I call the following code from the BeforeSave or AfterSave BO events nothing happens:-&lt;br&gt;
&lt;br&gt;
Auditor.InsertAuditRecords(this);&lt;br&gt;
&lt;br&gt;
I have enabled auditing on both the BO and the user but the following code returns false which appears to indicate auditing is disabled:-&lt;br&gt;
&lt;br&gt;
Auditor.ShouldAuditDataChanges(this);&lt;br&gt;
&lt;br&gt;
Should I be using "Auditor.InsertAuditRecords(this);" in the BeforeSave or AfterSave events and is my problem that "Auditor.ShouldAuditDataChanges(this);" returns false?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Aaron&lt;br&gt;
&lt;br&gt;</description><pubDate>Fri, 12 Feb 2010 06:10:30 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25664.aspx</link><description>It is possible for you to package up a quick sample for me to look at.&amp;nbsp; I was playing around with this and it seems to be working.&lt;/P&gt;&lt;P&gt;First things first, though.&amp;nbsp; Do you have the following tables deployed?&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/867b81d9-0957-4676-953a-9080.png"&gt;&lt;/P&gt;&lt;P&gt;Also, have you tried turning on the DataSource debugger to see if any traffic is going to the server?&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Data.DataBasics.DataSources[""].SetDebugOn(...)[/codesnippet]&lt;/P&gt;&lt;P&gt;This might confirm whether data is actually trying to be saved or if your data source connections are setup properly.</description><pubDate>Sat, 30 Jan 2010 09:49:49 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25628.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
Can I bump this please? :)&lt;br&gt;
&lt;br&gt;
Can't seem to get it to work so just want to know if this class hasn't been implemented.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Aaron</description><pubDate>Wed, 27 Jan 2010 08:21:43 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25368.aspx</link><description>Can I bump again please :)&lt;/P&gt;&lt;P&gt;Just interested to know if it is worth trying to get it to work or&amp;nbsp;if it is work in progress and better left untouched.&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Wed, 09 Dec 2009 14:05:19 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Auditor Class</title><link>http://forum.strataframe.net/FindPost25345.aspx</link><description>I haven't used the BO part of auditing (played around with other auditing functions), but this post seems to have gotten lost....bump.</description><pubDate>Mon, 07 Dec 2009 18:57:58 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>