The thing that's driving me crazy is that the instructions literally
states,
1. Double-click the talentDisplayGroup in the object browser
2. Select "Has detail data source"
3. Select the Master Entity from the pop-up list or type it in the
text field-- for example, select Talent.
4. Select the Detail Key from the pop-up list or type the key name in
the text field--for example, select roles, the to-many relationship
from Talent to MovieRole.
5. Click OK.
It doesn't state creating a new group at all or dragging anything
from an EOModel. I also attempted to rebuild the entire web
application by the instructions and went ahead and set up the
talentDisplayGroup with the instructions above before I created the
talent key. That didn't make a bit of difference. The other thing I
discovered doing this is by simply turning off the "Has detail data
source" I at least get repeated rows on the table but there isn't
anything displayed. With "Has detail data source" checked, the
WORepitiion row of the table doesn't even pull up.
These are the two different ways Talent was set up in the Main.java
file...
/** @TypeInfo MovieRole */
public EOEnterpriseObject talent;
and
/** @TypeInfo Talent */
public EOEnterpriseObject talent;
Just out of curiousity, in /** @TypeInfo Talent */ is Talent the name
of the entity or the name of the table?
I attempted to do what you described, but I can't seem to figure out
how to...
To get the rolesDisplayGroup to do it's thing you would set it's
master object using the hyperlink action from the talent name.
I appreciate your assistance Kevin.
Bruce
On Feb 15, 2007, at 11:58 AM, Kevin Windham wrote:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/bsmith3%
40jcpenney.com
This email sent to [EMAIL PROTECTED]
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]