Yes, thanks, I continued googling and found a wiki that described this. Weird I think the mailing list was down for about a week. Or it's just my imagination.
Ted Message: 15 Date: Tue, 6 Jan 2009 17:50:52 +1030 From: Paul Hoadley <pa...@logicsquad.net> Subject: Re: ERXEC.newEditingContext() access To: tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Message-ID: <cc67c231-fe5f-4922-abc2-fb4d5a007...@logicsquad.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On 02/01/2009, at 12:03 PM, Theodore Petrosky wrote: > 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); EOEditingContext ec = ERXEC.newEditingContext(); categoryList = Category.fetchAllCategories(ec, 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(); ec.saveChanges(); > I am at a loss as to how to access the editingContext when I use > ERXEC.newEditingContext(). Assigning it to a local variable will certainly give you access to the EC you're passing to fetchAllCategories() above. Does that solve your problem? -- Paul. _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com