• 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
D2W Business Logic triggered by a Delete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2W Business Logic triggered by a Delete


  • Subject: D2W Business Logic triggered by a Delete
  • From: David Avendasora <email@hidden>
  • Date: Sun, 28 Aug 2011 09:40:26 +0800

Hi all,

I have some business logic that I want to execute when an EO is deleted that reassigns some of the EO's related objects to another EO. I figured overriding willDelete() was the perfect place for it.

The JavaDoc on willDelete states:

"This method is also called before validateForDelete is called on this object."

But in my D2W app when the ERMDDeleteButton is clicked, the validateForDelete is getting called first, before my implementation of willDelete, which would have taken care of the validation problem.

Is using willDelete the wrong place to do this? If so, how do I get my business logic to execute when a ERMDDeleteButton button is clicked, but before validation is is called?!

The implementation must be UI-independent. If anything tries to delete the EO (ERRest, D2JC, etc.) then this business logic should be executed.

Dave
 _______________________________________________
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

  • Follow-Ups:
    • Re: D2W Business Logic triggered by a Delete
      • From: Henrique Prange <email@hidden>
  • Prev by Date: Re: pick a file on server component
  • Next by Date: Re: D2W Business Logic triggered by a Delete
  • Previous by thread: Re: pick a file on server component
  • Next by thread: Re: D2W Business Logic triggered by a Delete
  • Index(es):
    • Date
    • Thread