• 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
Re: Refreshing a Page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Refreshing a Page (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Getting a DirectAction URL to a method or Variable
  • Next by Date: Learning WO
  • Previous by thread: Re: Refreshing a Page
  • Next by thread: MySQL and WebObjects
  • Index(es):
    • Date
    • Thread