![]() If there is more than one data object in a collection, a form in a prebuilt master-detail widget includes four commandButton tags for range navigation: First, Previous, Next, and Last. You can change this label as needed using a string or an EL expression that binds to a resource bundle. The tables and forms in the prebuilt master-detail widgets include a panelHeader tag that contains the fully qualified name of the data object populating the form or table. If you are building your own master-detail widgets, you might want to consider including similar components that are automatically included in the prebuilt master-detail tables and forms. The JSF code generated for a prebuilt master-detail widget is similar to the JSF code generated when you use the Data Controls panel to create a read-only form or table. If you want to modify the default forms or tables, see Section 22.3, "Creating a Basic Form" or Section 23.2, "Creating a Basic Table." When a specific master data object is selected in the top table, the first set of related detail data objects is displayed in the table below it. The user must use the form navigation to scroll through each subsequent detail data object.ĪDF Master Table, Detail Table: Displays the master and detail objects in separate tables. When a specific master data object is displayed in the top form, the first related detail data object is displayed in the form below it. When a specific master data object is displayed in the form, the related detail data objects are displayed in a table below it.ĪDF Master Form, Detail Form: Displays the master and detail objects in separate forms. The user must use the form navigation to scroll through each subsequent detail data object.ĪDF Master Form, Detail Table: Displays the master objects in a read-only form and the detail objects in a read-only table under the form. When a specific data object is selected in the master table, the first related detail data object is displayed in the form below it. In the context menu, choose one of the following master-detailsUI components:ĪDF Master Table, Detail Form: Displays the master objects in a table and the detail objects in a read-only form under the table. ![]() If you want to create an editable master-detail form, drop the master object and the detail object separately on the page. ![]() The Products collection is an instance of the ProductsVO view object, and the WarehouseStockLevels collection, which appears as a child of the Products collection, is an instance of the WarehouseStockLevelsVO view object. Its master object is automatically created on the page.įigure 24-3 shows two master-detail related collections in the Data Controls panel of the Fusion Order Demo application. To display master-detail objects as form or table objects, drag the detail object from the Data Controls panel and drop it on the page. ![]() For information about adding master-detail objects to the data model, see Section 5.6.4, "How to Enable Active Master-Detail Coordination in the Data Model." The Data Controls panel displays master-detail related objects in a hierarchy that mirrors the one you defined in the application module data model, where the detail objects are children of the master objects. You can declaratively create pages that display master-detail data using the Data Controls panel. A change in the current row of the master view object instance causes the row set of the detail view object instance to refresh to include the details for the current master.Ģ4.2 Identifying Master-Detail Objects on the Data Controls Panel For example, in the Fusion Order Demo application, there is a view link from the ProductsVO view object to the WarehouseStockLevelsVO view object based on the ProductId attribute, both contained in the application module data model, as shown in Figure 24-1. To enable master-detail coordination, you must add both the master view object and the detail view object instances to the application module data model. When using ADF Business Components in combination with the ADF Model layer and ADF Faces UI components, the data model automatically updates to reflect any changes to the row sets of these business objects. To display master-detail data on a page using ADF data binding, you exclusively use data model view link instances, which support master-detail coordination. The view link associates a row of one view object instance (the master object) with one or more rows of another view object instance (the detail object). As described in Section 5.1, "Introduction to View Objects", a view link represents the relationship between two view objects, which is usually, but not necessarily, based on a foreign-key relationship between the underlying data tables. In ADF Business Components, a master-detail relationship refers to two view object instances that are related by a view link. 24.1 Introduction to Displaying Master-Detail Data
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |