Modifying the Attributes Displayed in the Table Introduction to Displaying Master-Detail Data

4-18 Java EE Developers Guide for Oracle Application Development Framework

4.5 Modifying the Attributes Displayed in the Table

Once you use the Data Controls panel to create a table, you can then delete attributes, change the order in which they are displayed, change the component used to display them, and change the attribute binding for the component. You can also add new attributes, or rebind the table to a new data control. For more information about modifying existing UI components and bindings, see the Modifying the Attributes Displayed in the Table section of the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. 5 Displaying Master-Detail Data 5-1 5 Displaying Master-Detail Data This chapter describes how to create various types of pages that display master-detail related data. This chapter includes the following sections: ■ Section 5.1, Introduction to Displaying Master-Detail Data ■ Section 5.2, Identifying Master-Detail Objects on the Data Controls Panel ■ Section 5.3, Using Tables and Forms to Display Master-Detail Objects ■ Section 5.4, Using Trees to Display Master-Detail Objects ■ Section 5.5, Using Tree Tables to Display Master-Detail Objects ■ Section 5.6, Using Selection Events with Trees and Tables For information about using a selection list to populate a collection with a key value from a related master or detail collection, see Chapter 6, Creating Databound Selection Lists.

5.1 Introduction to Displaying Master-Detail Data

When objects have a master-detail relationship, you can declaratively create pages that display the data from both objects simultaneously. For example, the page shown in Figure 5–1 displays a country code in a form at the top of the page and its related states and provinces in a table at the bottom of the page. This is possible because the objects have a master-detail relationship. In this example, the Country Code is the master object and States is the detail object. ADF iterators automatically manage the synchronization of the detail data objects displayed for a selected master data object. Iterator bindings simplify building user interfaces that allow scrolling and paging through collections of data and drilling-down from summary to detail information. 5-2 Java EE Developers Guide for Oracle Application Development Framework Figure 5–1 Detail Table You display master and detail objects in forms and tables. The master-detail form can display these objects on separate pages. For example, you can display the master object in a table on one page and detail objects in a read-only form on another page.

5.2 Identifying Master-Detail Objects on the Data Controls Panel