Re: Creating a Detail Interface for the To-Many Relationship
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