Re: You crossed editing context boundaries...
Re: You crossed editing context boundaries...
- Subject: Re: You crossed editing context boundaries...
- From: "Ricardo J. Parada" <email@hidden>
- Date: Tue, 14 Oct 2008 18:52:21 -0400
On Oct 14, 2008, at 6:23 PM, WebObjects wrote: NSArray<EOSortOrdering> order = new NSArray(new ERXSortOrdering("id",ERXSortOrdering.CompareAscending));
This is not related to your problem... but since it looks like you are using Wonder I think you can do this too to get your sort orderings:
NSArray<EOSortOrdering> order = new WorkDay.ID.asc().array();
By the way this looks similar to the screencast for using Wonder part II. Have you looked at that? It shows you how to setup a login page using direct actions and only creating the session when needed, i.e. after a successful login.
And regarding your problem, if you are adding turns to your employee EO then you need to make sure they were both fetched in the same editing context. ak.a. EO sandbox. If they are not in the same editing context then simply take one of the EOs, for instance, your employee EO and get a copy in the editing context you used to fetch the turns. You can do this as mentioned by others. |
_______________________________________________
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