• 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: validating deleting an object with relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validating deleting an object with relationship


  • Subject: Re: validating deleting an object with relationship
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 18 Jan 2010 16:54:17 -0800


On Jan 18, 2010, at 4:49 PM, Johan Henselmans wrote:

I want to delete an EO object only if some data is not available in one of its relationships.

Can you not use a delete rule? Deny is what you want.



validateForDelete() can not be used, because before that us called the relations have already been obliterated.


mightDelete() gives the required info, but does not raise a validation exception.

How does one raise a validation exception in this situation, so that it will give these nice Yellow messages in a direct To Web Application?

<PastedGraphic-1.png>

Johan Henselmans
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

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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: validating deleting an object with relationship
      • From: Johan Henselmans <email@hidden>
References: 
 >validating deleting an object with relationship (From: Johan Henselmans <email@hidden>)

  • Prev by Date: validating deleting an object with relationship
  • Next by Date: Ajax Update Container and Mouse Move events issue on IE browser
  • Previous by thread: validating deleting an object with relationship
  • Next by thread: Re: validating deleting an object with relationship
  • Index(es):
    • Date
    • Thread