• 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
Nested Editing Contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nested Editing Contexts


  • Subject: Nested Editing Contexts
  • From: "Albert Jagnow" <email@hidden>
  • Date: Mon, 21 Jul 2003 17:29:42 -0500
  • Priority: normal
  • Thread-topic: Can't modify EO objects! ARGH! =(

I have changed the application I am currently working on to use nested
editing contexts based on some earlier discussion that it might be a
better/safer way of doing things.  A very simple description of what I
have is like the following:

ec = session().defaultEditingContext();
nestedEc = new EOEditingContext(ec);

EOEnterpriseObject eo = new EOEnterpriseObject();
nestedEc.insertObject(eo);

user updates eo and clicks save

nestedEc.saveChanges();
ec.saveChanges();

When ec.saveChanges() is called I get the error "Cannot obtain globalId
for and object which is registered in an other than the
databaseContext's active editingContext,..."  I assume I am not
understanding some simple concept about how nested editing contexts
should work.  Could someone attempt to explain to me what I am doing
wrong.

--Albert


This e-mail (including any attachments) is covered by the Electronic
Communications Privacy Act, 18 USC. 2510-2521. It is confidential and
may be legally privileged. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited. Please reply to
the sender that you have received the message in error, and then delete
it. Thank you.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Large File Uploads [was Re: Large volume file upload design question ]
  • Next by Date: Re: Nested Editing Contexts
  • Previous by thread: Re: Large File Uploads [was Re: Large volume file upload design question ]
  • Next by thread: Re: Nested Editing Contexts
  • Index(es):
    • Date
    • Thread