beautypg.com

Creating a detail display group, Creating a detail display group 105 – Apple WebObjects 3.5 User Manual

Page 105

background image

Setting Up a Master-Detail Configuration

105

In the Movies application, the master-detail configuration is built around
Movie’s

movieRoles

relationship. The configuration is split across two pages in

the application. The master,

movieDisplayGroup

, is in the Main component,

while the detail is in MovieDetails.

In this section, you’ll:

Create and configure the detail display group.

Extend the MovieDetails user interface to hold MovieRole and Talent
information.

Creating a Detail Display Group

You can create a detail display group several different ways. You can write a
declaration for it in Project Builder, or you can use WebObjects Builder’s
Add Variable/Method command. But the easiest way to create a detail
display group is by dragging a relationship from EOModeler into your
component, as described below.

1. In EOModeler’s tree view, expand the Movie entity.

2. Drag the Movie’s

movieRoles

relationship from the tree view into the

MovieDetails component’s object browser.

Click here to expand or
contract an entity.

means that the entity

is already expanded. Click
the dash to contract the
entity.

means that the entity

can be expanded to
display its relationships.
Click the plus to expand
the entity.

If an entity has neither a
dash nor a plus, the entity
has no relationships, and
therefore can’t be
expanded.