• 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
Testing if an EO would be deletable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing if an EO would be deletable


  • Subject: Testing if an EO would be deletable
  • From: Paul Hoadley <email@hidden>
  • Date: Tue, 19 Jan 2010 20:17:31 +1030

Hello,

I was just reading Johan Henselmans's thread entitled "validating deleting an object with relationship", and it reminded me of a similar question I had recently: is there a convenient way to ask EOF if a particular EO _would be_ deletable if I tried to delete it?

I have a component where I list some EOs, and I want to offer a "Delete" hyperlink next to only those which would be deletable given the model's delete rules.  Is the easiest way to do this to call validateForDelete() and see if it throws a ValidationException?  I assume that would answer the question, it just seems a bit clumsy.


--
Paul.

http://logicsquad.net/


 _______________________________________________
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: Testing if an EO would be deletable
      • From: Chuck Hill <email@hidden>
    • Re: Testing if an EO would be deletable
      • From: Ramsey Gurley <email@hidden>
    • Re: Testing if an EO would be deletable
      • From: "Cheong Hee (Gmail)" <email@hidden>
  • Prev by Date: Re: validating deleting an object with relationship
  • Next by Date: Re: Testing if an EO would be deletable
  • Previous by thread: Ajax Update Container and Mouse Move events issue on IE browser
  • Next by thread: Re: Testing if an EO would be deletable
  • Index(es):
    • Date
    • Thread