• 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: Creating a Detail Interface for the To-Many Relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Detail Interface for the To-Many Relationship


  • Subject: Re: Creating a Detail Interface for the To-Many Relationship
  • From: David Holt <email@hidden>
  • Date: Thu, 15 Feb 2007 17:21:26 -0800

Hi Bruce,

The tutorial doesn't work (or is terribly confusing). Page 98 appears to be a mess, the screenshot can't possibly be right. The lower table refers to a selected object (which is a MovieRole) as if it were a Talent. The two entity types are not equal!

In the first part of the tutorial, the upper repetition is an NSArray of Talent objects (talentDisplayGroup.displayedObjects)
If you implement the Master/Detail configuration as described on Page 97, talentDisplayGroup.displayedObjects becomes an NSArray of MovieRoles. This screws up the WORepetition in the upper table and makes the bindings to FirstName and LastName in the lower table impossible.


As far as I can tell, there is no need to change the WODisplayGroup configuration page to show the to-many relationship.

Don't mess with the WODisplayGroup configuration and follow from here: the display of the firstName and lastName is exactly the same as the first part of the tutorial. To implement the display of the Movie/Role part for a given Talent:

1. Follow the steps in "Creating a Detail Interface for the To-Many Relationship" on page 97.

2. Set the list binding of your WORepetition in the second row of your new table to talentDisplayGroup.selectedObject.roles
3. Create a new key called aMovieRole of entity type MovieRole
4. Set the item binding of your WORepetition to aMovieRole


5. Set the left hand cell WOString value binding to aMovieRole.roleName
6. Set the right hand cell WOString value binding to aMovieRole.movie.title


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


  • Follow-Ups:
    • Re: Creating a Detail Interface for the To-Many Relationship
      • From: Bruce Smith <email@hidden>
References: 
 >Creating a Detail Interface for the To-Many Relationship (From: Bruce Smith <email@hidden>)

  • Prev by Date: How are you handling html templates created in other apps?
  • Next by Date: Re: How are you handling html templates created in other apps?
  • Previous by thread: Re: Creating a Detail Interface for the To-Many Relationship
  • Next by thread: Re: Creating a Detail Interface for the To-Many Relationship
  • Index(es):
    • Date
    • Thread