Re: [Wonder-disc] Skipping the need to back out with saves in D2W?
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.