Need to perform another fetch?
Need to perform another fetch?
- Subject: Need to perform another fetch?
- From: Bill Reynolds <email@hidden>
- Date: Sun, 11 Apr 2004 21:20:50 -0700
I have a component that does a great deal of work and after the user has
made a bunch of choices I end up with a correctly fetched record. I perform
some actions on it, save it, etc.
After all that is said and done I'm left with my object, an enterprise
object, we'll call it "MyUserClass". I want to pass this into another
component for some further operation, but because of my design I don't keep
it in the Session (an obvious mistake on my part). So I've created a
variable in the new component for storing it, and I can easily pass it in
after I create the new component.
My question is this... Once I have "MyUserClass" object in my new component,
how do I update it and save changes? Do I need to pass along the
EditingContext with it somehow?
I did the obvious beginner stuff, that is to say I made some changes to the
object then I called the 'save' method of the new components default editing
context - but the update to the database doesn't happen.
TIA for any guidance,
-Bill
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.