• 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
Display-Data Consistency in session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display-Data Consistency in session


  • Subject: Display-Data Consistency in session
  • From: Randy Becker <email@hidden>
  • Date: Sat, 19 Nov 2005 00:46:45 -0500

I'm coming up against some issues with modifying my database - whenever I modify an object, the change is reflected in the database, but is not displayed correctly until the current session is ended and a new one created. Am I doing something wrong when I change the DB?

I'm doing something like this:


EOEditingContext editingContext = session().defaultEditingContext();

EOEnterpriseObject newRequest = EOUtilities.createAndInsertInstance ( editingContext, "Request" );
Object itemPK = EOUtilities.primaryKeyForObject( editingContext, requestedItem).objectForKey("itemPK");


newRequest.takeValueForKey( itemPK, "itemPK" );
newRequest.takeValueForKey( personPK, "personPK" );
newRequest.takeValueForKey( new NSTimestamp(), "dateRequested" );

editingContext.saveChanges();

return (WOComponent)pageWithName("Dashboard");


"Dashboard" won't display the correct information until I end the session and create a new one.


-Randy

_______________________________________________
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


  • Follow-Ups:
    • Re: Display-Data Consistency in session
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: Cannot Resolve Symbol Error/WO 5.3.1
  • Next by Date: Re: Display-Data Consistency in session
  • Previous by thread: Re: MultiECLockManager
  • Next by thread: Re: Display-Data Consistency in session
  • Index(es):
    • Date
    • Thread