• 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
Nested Editing Contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nested Editing Contexts


  • Subject: Nested Editing Contexts
  • From: Kevin Windham <email@hidden>
  • Date: Thu, 5 Apr 2007 15:42:14 -0500

I am trying to work out how to use a nested editing context in my app.

I have an object that has a relationship to another object that it owns. I am currently directing the user to another page to edit the owned object, and need to implement a nested context to make save and cancel work properly.

My understanding of how this should work is extremely basic at this point. Here is what I think I need to do when the user decides to edit the owned object:

create a new editing context with the default context as its parent
lock the new ec
Add my owned object into the new child context
set my child page's object variable to the owned object which is in the child ec
return the child's page to the user
the user now either saves or cancels
call saveChanges or revertChanges based on the user's action
unlock the child ec
dispose the child ec
return the parent page



Am I going wrong here right off the bat, or is this basically correct.

Thanks,
Kevin

_______________________________________________
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


  • Follow-Ups:
    • Re: Nested Editing Contexts
      • From: Ken Anderson <email@hidden>
  • Prev by Date: Re: I don't get it.(was delete statement)
  • Next by Date: Re: How to Retrieve Session User?
  • Previous by thread: Re: Updating Nested To-Many Relationship *NOT SOLVED*
  • Next by thread: Re: Nested Editing Contexts
  • Index(es):
    • Date
    • Thread