Re: validateForUpdate
Re: validateForUpdate
- Subject: Re: validateForUpdate
- From: Chuck Hill <email@hidden>
- Date: Tue, 5 Apr 2005 09:39:07 -0700
On Apr 5, 2005, at 9:33 AM, Sacha Mallais wrote:
On Apr 5, 2005, at 9:26 am, Chuck Hill wrote:
On Apr 5, 2005, at 4:37 AM, Sébastien Gruhier wrote:
I would like to do something when an EO object is updated. I found
validateForUpdate which is exactly what I need but it seems to work
only on attributes not on relationship.
You are not thinking of changing anything on the EO, are you?
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?
wikiPage=EOFCommandments
Is there a way for an object to know if a toOne relationship object
will be updated?
See the CooperatingEditingContext from PracticalWebObjects or ERXEC
from Project Wonder for the best way to do this.
For a quick and easy way, just change the setter to notify you. Use
one of the above for a decoupled, general solution.
Ooh, you nasty hacker you! :-P
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development 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