Building a Master Detail Form

Previous
Previous
Next
Next

A master detail form reflects a one-to-many relationship between two tables in a database. Typically, a master detail form displays a master row and multiple detail rows within a single HTML form. With this form, users can insert, update, and delete values from two tables or views.

To create a master detail form:

  1. On the Database Home Page, click the Application Builder icon.

  2. Select an application.

  3. Click Create Page.

  4. Select Form.

  5. Select Master Detail Form.

    The Master Detail Wizard appears.

  6. On Define Master Table:

    1. Select a table or view owner.

    2. Select a table or view name.

    3. Select the columns to display.

  7. On Define Detail Table:

    1. Specify to show only related tables.

    2. Select the table or view owner.

    3. Select the table or view name.

    4. Select the columns to display.

  8. On Define Primary Key, select the primary key column for the master table, and then select the primary key column for the detail table.

  9. On Define Master and Detail, define the relationships between master and detail tables.

  10. Specify the source for the master table and detail table primary key columns.

  11. On Define Master Options, specify whether or not to include master row navigation.

    If you include master row navigation, define navigation order columns. If a navigation order column is not defined, the master update form navigates by the primary key column.

  12. On Choose Layout, specify the layout of the master detail pages.

    You can include the master detail as a tabular form on the same page, or add the master detail on a separate page.

  13. On Page Attributes, review and edit the master page and detail page information.

  14. On Identify Tabs, specify whether or not to include an optional tab set.

  15. Click Create.