• 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: Can not undo delete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Can not undo delete
      • From: Daniel Eggert <email@hidden>
References: 
 >Can not undo delete (From: Daniel Eggert <email@hidden>)

  • Prev by Date: Re: D2W Rule question
  • Next by Date: Re: D2W Rule question
  • Previous by thread: Can not undo delete
  • Next by thread: Re: Can not undo delete
  • Index(es):
    • Date
    • Thread