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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to