On 16/07/2009, at 6:37 PM, Gustavo Pizano wrote:

Lachlan hello..

Yeah about the classnames it was  damn mistake I did when creating the
EOModel, my bad.

:)

selectedList is a NSArray<TranslationSet> that comes form the binding
selections form the WOBrowser. The list that feeds the WOBrowser its being
created  like

contentsList = (NSMutableArray<TRANSLATIONSET>)
selectedWG .toTranslationSets().valueForKey(_WGxTS.T_RANSLATIONSET_KEY); where selectedWG its the selection of another list, that its being fetched
like this:

NSArray aux1 = _WG.fetchAllWGs(session().defaultEditingContext());
wgList = EOSortOrdering.sortedArrayUsingKeyOrderArray(aux1, new NSArray(new
Object[]{EOSortOrdering.sortOrderingWithKey(_WG.PROJECT_NAME_KEY,
EOSortOrdering.CompareAscending)}));

so, once again,, when I select an item form wgList, it get binded into
selectedWG and then using AjaxUpdateContainerID the other list get its
data...

I still want to understand why you're doing this:
          ec.insertObject(ts);



If it's in another ec you should be doing this:
if (!ec.equals(ts.editingContext())) {
        ts = EOUtilities.localInstance...
}
// or if you're using Wonder:
ts = ts.localInstanceIn(ec);

I already saved some information in another requiremente, usign the same procedure, generating contents of main list, then selecting an itme of main list, then selecting another item of the second list and then modifing that last item by adding more stuff to the EO and adding the relationships and so
on, and I had no problem
But this time using the same procedure but instead of adding more stuff Im
just adding a relationship I get this error.

THe user its being fetched from the WOPopUpList, with the same EC, so I
suspeceted it should be there. but no. :S

You're doing something weird.
We need to see more code.

with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to