• 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: Bruce Smith <email@hidden>
  • Date: Fri, 16 Feb 2007 08:39:37 -0600

That worked! That actually made sense after thinking about it, and it happened to be the one thing I didn't try. Thanks David.

So, in light of this, what exactly is "Has detail data source" for? Or should I just read on and forget that option was ever there. :-)



On Feb 15, 2007, at 7:21 PM, David Holt wrote:

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

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
 _______________________________________________
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: David Holt <email@hidden>
References: 
 >Creating a Detail Interface for the To-Many Relationship (From: Bruce Smith <email@hidden>)
 >Re: Creating a Detail Interface for the To-Many Relationship (From: David Holt <email@hidden>)

  • Prev by Date: Re: WebObjects 5.3.3 released
  • 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