Create a Form-over-Table Layout in an Excel Workbook

You can create a Form-over-Table layout in an Excel worksheet when a parent-child relationship exists in the chosen service.

A Form-over-Table layout can only be created for the top-level business object in a business object hierarchy. Suppose you have a hierarchy with three levels: purchaseOrders, lines, and schedules. In this hierarchy, purchaseOrders is a collection of top-level purchase orders each with one or more lines for managing the details of each order. Each of these lines may include one or more schedules for tracking shipping details.

In this scenario, you can only create a Form-over-Table layout for the purchaseOrders and lines business objects. You can't use lines for the form and schedules for the table in a Form-over-Table layout. See Use Multiple Layouts for Multi-level Business Objects.

Note:

You can create a layout that references polymorphic business objects and includes descriptive flexfields. If the business object includes descriptive flexfields, they are appended with "DFF" (for example, "EmployeesDFF") and included in the list of descendant business objects. See Use Polymorphic Business Objects and Fields.

A parent-child relationship at the service level requires:

  • A parent service path, for example, fscmRestApi/resources/1.0/purchaseOrders
  • A child service path with a parameter, for example, fscmRestApi/resources/1.0/purchaseOrders/{purchaseOrder-id}/child/lines

In your workbook, both business objects must be declared in the same catalog. Continuing our example, lines must appear as a child of purchaseOrders. To allow for data retrieval, updates, creation, deletion, and action invocation with the parent and child business objects using this layout, the service must expose the corresponding GET, PUT/PATCH, POST, and DELETE operations on these paths.

When you create a Form-over-Table layout, you may be prompted to point to the service metadata document. The service metadata document can be stored on your local drive or accessed remotely using a URL.

You'll also have the option to provide authentication details for accessing your REST service. Consult with your REST service owner for access requirements.

Before you begin, review these support topics for your REST service:

To create a Form-over-Table layout:

  1. Create a blank Excel workbook using the standard .XLSX file format or the macro-enabled .XLSM format. Other Excel formats (.XLS and so on) are not supported.
  2. Click the cell where you want to locate the form and table.
  3. Open the Oracle Visual Builder tab from the Excel ribbon.

  4. Click Designer to launch the New Layout Setup wizard.
    Description of excel-apiinput.png follows
    Description of the illustration excel-apiinput.png
  5. From the first screen, provide the service metadata document using one of these options:
    • Web Address option (the default) if you access the service metadata from a URL. Note that you can't provide a data URL (a URL that returns data) as the starting point to creating a layout.
    • Select a file option if the service metadata document is a local file on your computer.

    Tip:

    If you are working with Oracle ADF REST Resource services, the URL for the service metadata usually ends with /describe, for example, https://my-service-host/fscmRestApi/resources/1.0/purchaseOrders/describe.
  6. Select the authentication method for your service from the Authentication list and click Next.

    See Authentication Options for more information.

  7. If you selected OAuth 2.0 Authorization Code, enter the required properties and click Next.

    Required fields are outlined in red. Refer to OAuth 2.0 Authorization Code Flow with PKCE for descriptions of the fields.

  8. If the service includes five or more business objects, select the business objects you want to include in the catalog, then click Next.

    The wizard displays details of the newly-created catalog, such as the catalog name, service host and base path, and number of business objects.

  9. Review the new catalog details.

    Note:

    If there are any errors in the service metadata document, click Save Report to save the report to your local drive. Share this report with the service owner.
  10. Click Next to proceed.
  11. Choose the top-level business object for the form (in this case, purchaseOrders), and click Next.

  12. Choose Form-over-Table Layout, and click Next.

    The Form-over-Table layout option is unavailable if you didn't select the top-level business object or there is no available child business object.

  13. Choose a child business object for the table part of your Form-over-Table layout (in this case, lines), and click Next.

    If there are any available descriptive flexfields, these are displayed in the list and display a "DFF" ending.



    If you select this business object, the descriptive flexfields are added as fields to the parent layout. See Create a Layout Using Descriptive Flexfields.

    Note:

    You can select additional child business objects if you want to create a set of dependent layouts. If you select more than one, you'll be prompted to select the business object you want to show in the table of the root layout. See Create a Set of Dependent Layouts.
  14. Confirm the details of your Form-over-Table layout, and click Finish.

    The add-in creates a Form-over-Table in the Excel worksheet and opens the Layout Designer that you use to modify the newly-inserted form and table, as shown here:
    Description of fot-result.png follows
    Description of the illustration fot-result.png

    If the form business object (in this case, purchaseOrders) supports a create action, a Create Form Row option appears in the Form Changes menu, as shown in the image. Use this option to create a new form row during your next upload (see Create a Parent Row in a Form-over-Table Layout in Managing Data Using Oracle Visual Builder Add-in for Excel).

Before you proceed to publishing your workbook, you may want to configure the workbook in various ways to make it easier for your business users to use. For example, you might consider:

Before you publish, it's a good idea to test the workbook before you publish and distribute it to users. For information on managing data in a Form-over-Table layout, see Manage Data in Form-over-Table Layouts in Managing Data Using Oracle Visual Builder Add-in for Excel.