ERXEC.newEditingContext() access
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