Hello, Well Today's error its this one
java.lang.IllegalStateException: Cannot obtain globalId for an object
which is registered in an other than the databaseContext's active
editingContext, object: , databaseContext:
[EMAIL PROTECTED], object's
editingContext: [EMAIL PROTECTED], databaseContext's
active editingContext: [EMAIL PROTECTED]
Reason: Cannot obtain globalId for an object which is registered in an
other than the databaseContext's active editingContext, object:
<com.nhlpm.eo.DisplayBoard pk:"1000012">, databaseContext:
[EMAIL PROTECTED], object's
editingContext: [EMAIL PROTECTED], databaseContext's
active editingContext: [EMAIL PROTECTED]
What im trying to do its to delete a record form the database, what Im
doing its the following:
public DisplayAll doDelete(){
ERXEC myEditingContext = (ERXEC)
session().defaultEditingContext();
myEditingContext.revert();
myEditingContext.deleteObject(displayBoard());
myEditingContext.saveChanges();
return (DisplayAll)pageWithName("DisplayAll");
}
what's going on?
Regards
Gustavo
_______________________________________________
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]