• 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: Question about UI technique for adding a new object to a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Chuck Hill <email@hidden>
  • Date: Mon, 8 Dec 2008 13:45:10 -0800


On Dec 8, 2008, at 1:35 PM, 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.


1. Create and insert the EO to be added, but don't add it to the relationship. Only add once the user clicks save and you validate it.

2. Use a child (nested) ec. The new EO won't appear in the parent until the user saves. You will need to save again on the parent to make it persistent.

3. Same as 2 but use a peer EC,  only one save is needed.


Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
References: 
 >Question about UI technique for adding a new object to a list (From: David Holt <email@hidden>)

  • Prev by Date: Re: Question about UI technique for adding a new object to a list
  • Next by Date: Re: Question about UI technique for adding a new object to a list
  • Previous by thread: Re: Question about UI technique for adding a new object to a list
  • Next by thread: Re: Question about UI technique for adding a new object to a list
  • Index(es):
    • Date
    • Thread