Re: Question about UI technique for adding a new object to a list
Re: Question about UI technique for adding a new object to a list
- Subject: Re: Question about UI technique for adding a new object to a list
- From: Simon McLean <email@hidden>
- Date: Mon, 08 Dec 2008 21:39:41 +0000
You could try not adding it to the relationship until they hit save.
Alternatively wire the edit interface up to a dictionary and build the
whole object when they hit the save button. that way you don't have to
faff around tidying up if they bail out instead.
Simon
On 8 Dec 2008, at 21:35, David Holt wrote:
Hi all,
Is there a way for me to add an object to a to many relationship
(list of objects) without leaving the page or representing the
newObject both in the list and in the edit interface?
For example:
Meeting edit page
Attendees:
John
Mary
Edward
add new attendee(button)
When you hit the "add new attendee" button you get the new person
object displayed in both the list and associated with the edit
interface.
John
Mary
Edward
(new person)
name: (new person)
(save) (cancel)
The attendee has a mandatory meeting relationship, so it is added to
the meeting upon creation. The new object is displayed as the final
object in the to many relationship even before saveChanges is called
on the editingContext. Is it possible to show only the objects in
the relationship that have already been saved to the database and
the newly created (but not yet saved) object separately?
Normally I would add the attendee on a separate page and on save
come back to the original meeting page but I would like to eliminate
some jumping around if possible.
Thanks,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden