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: Kevin Windham <email@hidden>
- Date: Thu, 15 Feb 2007 11:58:23 -0600
On Feb 15, 2007, at 11:16 AM, Bruce Smith wrote:
At this point everything is working just great. The following is
where everything breaks when adding the To-Many Relationship:
I open the Display Group Options panel for talentDsplayGroup and
check "Has detail data source.", select Talent as the Master Entity
and roles as the Detail Key.
When this is done the Entity field in the Display Group Options
panel changes from Talent to Movie Roles and grays out so nothing
can be changed.
At this point, I can build and run the application, but the talent
list no longer pulls up, but it does as soon as I turn the "Has
detail data source" back off and change the Entity field back to
Talent.
Is there something I need to do to the talent key to fix this? I'm
not seeing anything other instructions in the manual to correct this.
I haven't gone through that example, and I just recently started
working with WO again, but it looks to me like you need 2 display
groups for that page. When you open the talentDisplayGroup and change
it, you are changing the displayGroup that is bound to the talent
list that allows you to select a talent. So when you change that
group, it no longer displays the talent. My guess is that you are
supposed to add a second displayGroup and make that one the master
detail group.
With two displayGroups you would end up with a list of names at the
top of the page brought in by the talentDisplayGroup, and their roles
below brought in by a rolesDisplayGroup. You can create the second
displayGroup by dragging in the roles relationship from EOModeler. I
haven't figures out how to drag a relationship into Builder from
XCode, but dragging in the relationship from EOModeler sets the
displayGroup up properly. To get the rolesDisplayGroup to do it's
thing you would set it's master object using the hyperlink action
from the talent name.
At least I think that's the way it would work. I haven't tried this
myself. Let me know how it turns out.
Kevin
_______________________________________________
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