• 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
Need to perform another fetch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Need to perform another fetch?
      • From: Chuck Hill <email@hidden>
    • Re: Need to perform another fetch?
      • From: Jonathan Rochkind <email@hidden>
    • Re: Need to perform another fetch?
      • From: Tony Becker <email@hidden>
    • Re: Need to perform another fetch?
      • From: Travis Britt <email@hidden>
  • Prev by Date: Re: Apache FOP install - what goes where?
  • Next by Date: WebObjects New York at Apple Store SOHO
  • Previous by thread: Re: Apache FOP install - what goes where?
  • Next by thread: Re: Need to perform another fetch?
  • Index(es):
    • Date
    • Thread