Re: newEO.localInstanceIn(localEditingContext)
Re: newEO.localInstanceIn(localEditingContext)
- Subject: Re: newEO.localInstanceIn(localEditingContext)
- From: "Ricardo J. Parada" <email@hidden>
- Date: Thu, 26 Mar 2009 17:36:27 -0400
On Mar 26, 2009, at 5:05 PM, Chuck Hill wrote:
On Mar 26, 2009, at 1:44 PM, Ricardo J. Parada wrote:
Yes, you are right... I better comment on the context. :-)
I'm playing with ajax tabbed panel and tabs.
Each component in a tab is getting its own editing context. Its
own sandbox. :-)
If the user is editing something in tab1 (i.e. has pending edits),
he can switch to tab2 and change something there and save that...
then come back to tab1 and the changes there are still pending and
he can click save there. Anyways, each tab has its own sandbox.
But this design breaks when you have a new EO because you cannot
make a copy of the EO into the other editing contexts used by the
other tabs.
And I think it also breaks if I attempt to make a copy of the EO if
it has pending changes from tab1 for example (right?).
So... I could change it to have all the tabs share the editing
context and would probably make things easier... I just wished I
could have the tab submit the form within the displayed tab when
the user switches tabs... Otherwise the user will change something
in a text field in tab1 then switch to tab2 and then back to tab1
and notice that the change made in the text field was lost.
Thanks,
Ricardo
Have one EC for the tab form as whole, and one child EC for each
tab. I think that will do what you want.
Hmm... If I do this then clicking save in one tab will simply commit
the changes to the parent editing context (it won't save to the
database right?).
_______________________________________________
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