Re: Can not undo delete
Re: Can not undo delete
- Subject: Re: Can not undo delete
- From: George Domurot <email@hidden>
- Date: Thu, 4 Aug 2005 07:12:11 -0700
Daniel: If you saveChanges() prior to revert(), your deletes are
permanent. Your objects may not be in your display group, but not
really deleted. Without a saveChanges() the actual delete from the
database wont occur. Try calling yourDisplayGroup.qualifyDataSource()
after revert() to refresh your objects. See if that brings back your
not-really-deleted objects.
-George
On Aug 4, 2005, at 3:30 AM, Daniel Eggert wrote:
Hi all,
I'm new to WebObjects... I'm adding and deleting objects to my
EOEditingContext through my WODisplayGroup. If I run
EOEditingContext ec = session().defaultEditingContext();
ec.revert();
my additions get reverted, but my deletes stay in effect, i.e. any
objects that were delete do not get back.
The documentation reads: "revert() clears the undo stack, discards all
insertions and deletions, and restores updated objects to their last
committed (saved) values."
I tried to set
setPropagatesDeletesAtEndOfEvent(false);
but I get the same behaviour.
What did I miss?
/Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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