Display-Data Consistency in session
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