• 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
ERXEC.newEditingContext() access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXEC.newEditingContext() access


  • Subject: ERXEC.newEditingContext() access
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 1 Jan 2009 17:33:54 -0800 (PST)

ok... I am experimenting with the ajax examples and I added the UpdateDisplayGroup to my app (with alterations). I am populating the list with a db query:

categoryList = Category.fetchAllCategories(ERXEC.newEditingContext(), sortOrderings);

then:

dg = new WODisplayGroup();
dg.setObjectArray(categoryList);
dg.setNumberOfObjectsPerBatch(20);

I want to access the editingContext and save the changes from the save dialog. What I want is something like this in the save function:

dg.selectedObject().editingContext().saveChanges();

obviously, there is no way to access the editingContext like this.

If I change my database query to use the session().defaultEditingContext(), I can then use the same context to save the changes.

I am at a loss as to how to access the editingContext when I use ERXEC.newEditingContext().

Help please, my head is starting to hurt....

Ted



 _______________________________________________
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: ERXEC.newEditingContext() access
      • From: Paul Hoadley <email@hidden>
  • Prev by Date: Re: Recording and looking up dates, when day-wide precision is required
  • Next by Date: Not finding binding with "$^" notation
  • Previous by thread: Re: Recording and looking up dates, when day-wide precision is required
  • Next by thread: Re: ERXEC.newEditingContext() access
  • Index(es):
    • Date
    • Thread