Creating a Single Page Master-Detail with Row Navigation

The default databound table that you can create for a web page lets the user view the collection's attribute values without regard to the currency of the data object. When you want to create a web page that displays the data objects in a master-detail relationship using separate tables, you can add Navigation buttons to manage the row currency.

To create an single page that maintains the currency of the master data object:

  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 master data collection.

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

  3. If you are creating a JSP page, select Read-Only Form in the dropdown list.

  4. To create the master form, drag the master collection as Read-Only Form into the open web page.

    The design view of the Visual Editor displays the HTML form represented by a dashed box.

  5. To create navigation buttons for the master table, select Navigation Buttons from the dropdown list and leave the master data collection selected.

  6. Insert the buttons into the existing HTML form so they appear below the display table.

    The design view of the Visual Editor should display the buttons inside the same dashed box, representing that they belong to the same HTML form element.

  7. Expand the data controls hierarchy and select the detail collection beneath the previously selected master collection. Do not change the default Read-Only Table choice in the dropdown list.

  8. To create the detail table, drag the detail collection as Read-Only Table into the open web page beneath the HTML form.

    The new table must appear outside of the dashed lines of the HTML form.

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

To manage the number of rows displayed by the input form, you can remove the unwanted binding expressions from the page.


Creating a Master-Detail Form with an ADF LOV Binding

 

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