• 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: Weird Behaviour...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird Behaviour...


  • Subject: Re: Weird Behaviour...
  • From: John Huss <email@hidden>
  • Date: Mon, 05 Dec 2011 12:58:06 -0600

Logging is your friend here - log out the value of editingContext.updatedObjects and see if it is empty.

On Mon, Dec 5, 2011 at 12:21 PM, John Huss <email@hidden> wrote:
If you have a save button, then do it in that action at the end.


On Mon, Dec 5, 2011 at 9:16 AM, Calven Eggert <email@hidden> wrote:
When do you suggest that I call objectWillChange(eo)?


On 2011-12-05, at 10:07 AM, John Huss wrote:

It is possible that EOF doesn't think the objects have changed and so it doesn't actually save anything.  If so, calling editingContext.objectWillChange(eo) will force it to look at the object and see if it has changes.

John

On Mon, Dec 5, 2011 at 8:35 AM, Calven Eggert <email@hidden> wrote:
Hi, All

I'm having some weird behaviour and have spent the last weekend trying to figure out what is going on.  Here is what's happening:

I have an EO record that has a number of fields including foreign keys. I run the application on my machine or on a Mac Server and edit a record by changing field values, including selections in different popups to change the foreign key values.  I verify that the changes have been made by using a SQL application called Froq App to look directly into the database.

Now the weird thing is that sometimes the data is not changed in the database.  I'll log out and then back into the app and make the exact same changes and this time it works.  This completely scares me and now I have absolutely no faith in what the application is saving.

Any one have any clues on why this might be happening and what I can do to figure this out.  I'm completely stumped. :-(

Calven
 _______________________________________________
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




 _______________________________________________
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: 
 >Weird Behaviour... (From: Calven Eggert <email@hidden>)
 >Re: Weird Behaviour... (From: John Huss <email@hidden>)
 >Re: Weird Behaviour... (From: Calven Eggert <email@hidden>)
 >Re: Weird Behaviour... (From: John Huss <email@hidden>)

  • Prev by Date: editingContextShouldFetchObjects equivalent for EODataSource/EODataBaseDataSource?
  • Next by Date: Re: Weird Behaviour...
  • Previous by thread: Re: Weird Behaviour...
  • Next by thread: AW: Weird Behaviour...
  • Index(es):
    • Date
    • Thread