Logging Changes to Entities

Posts   
 
    
csmith12
User
Posts: 33
Joined: 08-Dec-2003
# Posted on: 16-Aug-2004 19:50:14   

Experienced members,

I am looking for a good way to log when data is changed using the self service templates.

Whould anyone happen to have a suggestion as to the easiest way to do this.

We are currently using te templates in our code, I just would rather not go to each page and watch for a change at the page level. My hope is that it is possible to do this down in the entity, entityCollections or lower.

Thanks,

Devildog74
User
Posts: 719
Joined: 04-Feb-2004
# Posted on: 17-Aug-2004 04:11:17   

If there was an event that was raised OnSave, or OnDelete, you could invoke a delegate that did the logging.

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 17-Aug-2004 13:46:44   

I don't know if Otis fixed / added this to self service yet but there was no way in the past to get the old value when doing a audit trail / log report - Only the new value.

I have written a BL Objects around my entities (like custom entities) with a base Save method - that is where i do my audit / log report.

At that time the only way to get to the old value was to either store each fields value somewhere or create another instance of the same entity before saving the changes to the DB - that way you would accessto the Old & New value.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 17-Aug-2004 13:52:58   

wayne wrote:

I don't know if Otis fixed / added this to self service yet but there was no way in the past to get the old value when doing a audit trail / log report - Only the new value.

this will come with the runtime updates, which are in development simple_smile

Frans Bouma | Lead developer LLBLGen Pro
csmith12
User
Posts: 33
Joined: 08-Dec-2003
# Posted on: 24-Aug-2004 15:19:17   

Any ETA on this type of functionality?