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: 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