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 movieRoles 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 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.
Table of Contents Next Section