• 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: ERXEC.newEditingContext() instead of the defaultEditingContext()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXEC.newEditingContext() instead of the defaultEditingContext()


  • Subject: Re: ERXEC.newEditingContext() instead of the defaultEditingContext()
  • From: David LeBer <email@hidden>
  • Date: Mon, 15 Sep 2008 12:38:25 -0400


On 15-Sep-08, at 12:34 PM, Theodore Petrosky wrote:

I have used the ERXEC.newEditingContext() to access my database. but is another component I need to save my changes... so the defaultEditingContext doesn't help.

If I assess my data like this:

fetchResult = Order.fetchIsNotCompleted(ERXEC.newEditingContext());

I can not use:

session().defaultEditingContext().saveChanges();

I have googled and googled and can not find an answer.... sorry for the completely newbie(ized) question.

EOEditingContext ec = ERXEC.newEditingContext(); fetchResult = Order.fetchIsNotCompleted(ec); ... ... ec.saveChanges();

or if 'fetchResult' is a single EO:

fetchResult.editingContext().saveChanges();



;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________ 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: 
 >ERXEC.newEditingContext() instead of the defaultEditingContext() (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: ERXEC.newEditingContext() instead of the defaultEditingContext()
  • Next by Date: Re: Need advice
  • Previous by thread: ERXEC.newEditingContext() instead of the defaultEditingContext()
  • Next by thread: Re: ERXEC.newEditingContext() instead of the defaultEditingContext()
  • Index(es):
    • Date
    • Thread