Re: EOEditingContext Question
Re: EOEditingContext Question
- Subject: Re: EOEditingContext Question
- From: James Cicenia <email@hidden>
- Date: Sat, 25 Dec 2004 08:16:08 -0600
Merry Christmas!
Popup one has a project detail with many tasks shown.
Popup two is a window to pick a new template with pre done taks.
One has a choice of either appending or overwriting popup ones tasks.
They are all in the same editing context.
When I select a template and click ok, the window closes and javascript
reloads the 1st popup. However, nothing is changed. Only when I do
ec.saveChanges() and then invalidateAllObjects does is properly refresh
showing the changes. This defeats my original design of allowing them
to undue the changes because now it is saved to the database.
I hope this is clearer.
-James
On Dec 25, 2004, at 1:45 AM, Hunter Hillegas wrote:
It's not really clear to me what you're doing exactly.
You have two popups? Which controls are in which windows and how are
they related?
On Dec 24, 2004, at 11:44 AM, James Cicenia wrote:
Hello -
I have a popup window that has a couple of lists in it.
I have a popup from that one where a user selects a template
that is supposed to override the previous list with the new lists
from the template.
Everything works great if I ec.saveChanges() and then
ec.invalidateAllObjects(). However, I don't want to save changes
as I want to give the user one last chance to undo what they just
did. I just can't figure out how to refresh the page so that it shows
the new values without saving them first.
Am I missing an ec method somewhere which refreshes from the
cache? Is it supposed to do it automatically?
Thanks again,
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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