• 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
Re: ObjectNotAvailableException: when saving a simple relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjectNotAvailableException: when saving a simple relationship


  • Subject: Re: ObjectNotAvailableException: when saving a simple relationship
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 17 Jul 2009 08:51:21 +1000

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >ObjectNotAvailableException: when saving a simple relationship (From: Gustavo Pizano <email@hidden>)
 >Re: ObjectNotAvailableException: when saving a simple relationship (From: Lachlan Deck <email@hidden>)
 >Re: ObjectNotAvailableException: when saving a simple relationship (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Date formatter with support for ordinal date suffix?
  • Next by Date: Re: Date formatter with support for ordinal date suffix?
  • Previous by thread: Re: ObjectNotAvailableException: when saving a simple relationship
  • Next by thread: Re: ObjectNotAvailableException: when saving a simple relationship
  • Index(es):
    • Date
    • Thread