• 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: Theodore Petrosky <email@hidden>
  • Date: Mon, 15 Sep 2008 11:43:26 -0700 (PDT)

David, Guido...

Thanks for the pointing in the correct direction..

Ted


--- On Mon, 9/15/08, Guido Neitzer <email@hidden> wrote:

> From: Guido Neitzer <email@hidden>
> Subject: Re: ERXEC.newEditingContext() instead of the defaultEditingContext()
> To: email@hidden
> Cc: email@hidden
> Date: Monday, September 15, 2008, 1:05 PM
> On 15.09.2008, at 10:34, 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.
>
> You always save the editingContext of the objects you want
> to save. In
> the examples that is often the defaultEditingContext but it
> doesn't
> have to be.
>
> If you have any EO, you can always call:
>
> object.editingContext().saveChanges();
>
> This will save this object all all other changed, inserted,
> deleted
> objects in this editingContext.
>
> cug



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

  • Prev by Date: Re: Need advice
  • Next by Date: Maybe too many additions (Subversion, new Wonder Frameworks and little application tweaks)
  • Previous by thread: Re: ERXEC.newEditingContext() instead of the defaultEditingContext()
  • Next by thread: Maybe too many additions (Subversion, new Wonder Frameworks and little application tweaks)
  • Index(es):
    • Date
    • Thread