Re: Refreshing a Page
Re: Refreshing a Page
- Subject: Re: Refreshing a Page
- From: Thomas <email@hidden>
- Date: Fri, 24 Jan 2003 18:32:41 +1100
Try removing from the relationship BEFORE deleting the object...
On Friday, Jan 24, 2003, at 12:52 Australia/Sydney, Jonathan Fleming
wrote:
How are you deleting it? do you click the link, which is bound to a
method which deletes its and then returns the page?
public WOComponent deleteReferer() {
if ( this.canSafelyPerformAction( "deleteReferer" ) ) {
// get editing context from tbReferer object
EOEditingContext ec = tbRefererItem.editingContext();
// delete tbReferer from its editing context
ec.deleteObject(tbRefererItem);
// remove object from relationship
tbClient.removeObjectFromBothSidesOfRelationshipWithKey(tbRefererItem,
"tbReferers");
}
return this.backComponent();
}
Thomas Wedderburn-Bisshop, CIO, Woomera Net Solutions
Sydney Australia www.woomeranet.com.au
Phone: 02 9633 5048 Fax 02 9633 5248
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.