Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Getting Started With WebObjects


   

Setting Up a Master-Detail Configuration

So far your Movies application fetches, inserts, updates, and deletes only Movie objects. Considered alone, a Movie object isn't as interesting as it is when it's related to actors and roles. In this section, you'll add MovieRole and Talent objects to the Movies application.

The relationships defined in your model now come into play. Using Movie's toMovieRole relationship, you can display the MovieRoles for the selected Movie. In this type of configuration, called master-detail, a master display group holds enterprise objects for the source of a relationship, while a detail display group holds records for the destination. As individual records are selected in the master display group, the detail display group gets a new set of enterprise objects to correspond to the selection in the master.

In the Movies application, the master-detail configuration is built around Movie's toMovieRole 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:

Creating a Detail Display Group

Adding a Repetition

Configuring a Repetition

Running Movies


© 1999 Apple Computer, Inc. – (Last Updated 24 Aug 99)