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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]