• 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: Updated objects not present in updatedObjects() array ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updated objects not present in updatedObjects() array ?


  • Subject: Re: Updated objects not present in updatedObjects() array ?
  • From: Adam Czysciak <email@hidden>
  • Date: Fri, 2 Jun 2006 15:24:31 +0200


On Jun 2, 2006, at 12:46 PM, Ken Anderson wrote:

Usually when I have a bug like this, there's a relationship somewhere to an object in a different editing context. Are you sure that everything is in the same context? I realize your code example is, but often that's not the whole picture.
There is, but everything I do has the same context. I have a page for browsing actors (one editing context), and another component which does this stuff with actor's movie and it uses its own component (but first I do localInstanceOfObject() on actor)

I played with it a bit more today... and I found this one working:


ec.saveChanges();

if (old value != new value) {
movie.setIsReallyCool(old value); // yes, this is the OLD value, so saveChanges does nothing
ec.saveChanges();


    movie.setIsReallyCool(new value);
    ec.saveChanges();	// and this one finally saves the data...
}


-- Regards, Adam Czysciak 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


References: 
 >Updated objects not present in updatedObjects() array ? (From: Adam Czysciak <email@hidden>)
 >Re: Updated objects not present in updatedObjects() array ? (From: Christian Pekeler <email@hidden>)
 >Re: Updated objects not present in updatedObjects() array ? (From: Adam Czysciak <email@hidden>)
 >Re: Updated objects not present in updatedObjects() array ? (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Updated objects not present in updatedObjects() array ?
  • Next by Date: Problem with webobject attributes in WOBuilder
  • Previous by thread: Re: Updated objects not present in updatedObjects() array ?
  • Next by thread: Re: horizontal inheritance oddity
  • Index(es):
    • Date
    • Thread