Creating a Master-Detail Form with an ADF LOV Binding

The default databound input form that you can create for a web page lets the user edit the attribute values of a collection through databound text input elements. You can add a databound list of values component to your page, when you want the user to manage the collection to edit from the displayed list. The list of values permits the user to navigate through the collections and submit changes to each.

To create an input form that uses a list of value to navigate through collections:

  1. Open the Data Control Palette for the ADF-enabled web page that you want to design.

  2. In the Data Control Palette, expand the data controls hierarchy and select the desired detail data collection.

    Note: The Data Control Palette represents the master and detail collections using a hierarchical structure. To define a master-detail relationship, the detail collection must appear as a child node of the desired master collection in the Data Control Palette.

  3. To create the detail form, drag the detail collection as Input Form into the open web page.

    The Visual Editor displays the form represented by a dashed box. If you are working with a Struts-based web application, the form will be a Struts form.

  4. From the Data Control Palette, insert List of Values for the key attribute of the master collection into the dashed box representing the HTML form.

    The attribute you select should be a key value that specifies the relationship to the detail collection. For example, DeptNumber represents a key value for the Department and Employees collections.

  5. Define the ADF LOV binding in the binding editor to specify the required properties of the binding .

    It is important when you define the target and source collections not to select master-detail-related collections for the LOV binding. Instead, use unrelated collections to avoid navigating the LOV list while the user makes a selection from the LOV window.

To manage the number of rows displayed by the table, you can modify the Range Size on the created ADF iterator binding.


About the ADF List of Values (LOV) Binding

Creating a List of Values with an ADF LOV Binding
Creating an Input Form with an ADF LOV Binding

 

Copyright © 1997, 2004, Oracle. All rights reserved.