• 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: Daniel Eggert <email@hidden>
  • Date: Thu, 4 Aug 2005 17:12:40 +0200

Thank you.
That was indeed my problem. Actually a fetch() by itself resolves the issue as well.


/Daniel

On Aug 4, 2005, at 4:12 PM, George Domurot wrote:

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:
40boxofficetickets.com


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

  • Prev by Date: Re: D2W Rule question
  • Next by Date: How to find out about installed WO Version
  • Previous by thread: Re: Can not undo delete
  • Next by thread: D2W Rule question
  • Index(es):
    • Date
    • Thread