• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: D2W - execute custom code on save changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W - execute custom code on save changes


  • Subject: Re: D2W - execute custom code on save changes
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 14 Sep 2010 13:28:14 -0400

ERCoreBusinessLogic has audit trails. You can subclass ERCAuditTrailHandler to customize it. You specify the subclass with a property:

er.corebusinesslogic.ERCAuditTrailClassName=your.app.AuditTrailHandler

It's very nice. Auditing happens automatically whenever save changes is called via the magic of the NSNotificationCenter. I would go with this route personally.

If you want to inject custom logic into your submit method, you can hide the page buttons and supply your own buttons using a ERDBranchDelegate on your nextPageDelegate. Doing that should display your custom buttons via the ERDActionBar. Either that, or you can inject a custom Confirm page using the inspectConfirmConfigurationName rhs key. Then I think you can supply the logic in a confirm delegate.

Ramsey


On Sep 14, 2010, at 12:56 PM, Tim Worman wrote:

I'm using ERModernDirectToWeb to re-implement some admin parts of my existing application. One of the criteria I have is that under certain circumstances I need to log saved changes for audit reasons. I don't have to do it all the time so I need to interrupt in there with some branching logic.

The objects in question will be EO's so I thought about having the EO's themselves track the changes. The problem with that is that I really only want this auditing happening when accessing these EO's from the D2W admin interface. There are other processes that make changes to these EO's where I do not want the auditing.

Does anyone have some suggestions or pointers about where I can look to implement something like this?

Tim Worman
UCLA GSE&IS



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >D2W - execute custom code on save changes (From: Tim Worman <email@hidden>)

  • Prev by Date: Re: D2W - execute custom code on save changes
  • Next by Date: Re: D2W - execute custom code on save changes
  • Previous by thread: Re: D2W - execute custom code on save changes
  • Next by thread: Handling just-in-time login - alternative title: dimmer than a very dim thing
  • Index(es):
    • Date
    • Thread