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

Re: Need to perform another fetch?


  • Subject: Re: Need to perform another fetch?
  • From: Travis Britt <email@hidden>
  • Date: Mon, 12 Apr 2004 08:50:29 -0400

On Apr 12, 2004, at 12:20 AM, Bill Reynolds wrote:
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?

You're right that keeping it in the Session would be easier (unless you're avoiding Session for some other reason)... But you can get the EditingContext your EO is in using editingContext().


EditingContext ec = myEO.editingContext();

<http://developer.apple.com/documentation/WebObjects/Reference/API/com/ webobjects/eocontrol/EOCustomObject.html#editingContext()>

tb
_______________________________________________
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.


References: 
 >Need to perform another fetch? (From: Bill Reynolds <email@hidden>)

  • Prev by Date: WebObjects New York at Apple Store SOHO
  • Next by Date: Logging out is hard to do ... (la la la)
  • Previous by thread: Need to perform another fetch?
  • Next by thread: Re: Need to perform another fetch?
  • Index(es):
    • Date
    • Thread