• 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: [Wonder-disc] Skipping the need to back out with saves in D2W?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wonder-disc] Skipping the need to back out with saves in D2W?


  • Subject: Re: [Wonder-disc] Skipping the need to back out with saves in D2W?
  • From: Anjo Krank <email@hidden>
  • Date: Wed, 21 Apr 2004 15:00:41 +0200

Am 18.04.2004 um 18:06 schrieb Ashley Aitken:
Edit Project -> Edit Job -> Edit Item

To allow ONE Save, something like: saveAllChanges() or saveToDataSource() or ...?

I've CC'ed this to Project WONDER just in case they have any neat magic in their frameworks to do this.

How about subclassing the edit page and doing sth like:

public WOComponent saveAction() {
	EOEditingContext ec = editingContext();
	while(ec.parentObjectStore() instanceof EOEditingContext) {
		ec.saveChanges();
		ec = (EOEditingContext)ec.parentObjectStore();
	}
	return successPage();
}

But you will have to be sure all your objects validate...or you could see if you can use a ERDBranchDelegate if you actually have pages that follow each other.

Cheers, Anjo
_______________________________________________
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: 
 >Skipping the need to back out with saves in D2W? (From: Ashley Aitken <email@hidden>)

  • Prev by Date: OpenSource replace EOModler
  • Next by Date: Re: jdbc connection URL for SQL Server
  • Previous by thread: Skipping the need to back out with saves in D2W?
  • Next by thread: Master Detail relationship
  • Index(es):
    • Date
    • Thread