Create Layouts for Attachment Business Objects

Create a Table layout using an attachment business object that lets your business users upload and download attachments.

You can create a standalone Table layout, the Table layout of a Form-over-Table layout, or a Table layout in a set of dependent layouts based on an attachment business object. You cannot use the form in a Form-over-Table layout.

Service Requirements

Oracle Visual Builder Add-in for Excel supports attachments in integrated workbooks if the REST service has:

When you create a Table layout based on an attachment business object, the add-in can properly configure the layout as long as the attachment record business object includes:

Configure an Attachment

If the workbook was created before version 2.8 of the add-in or the naming does not match, configure the attachment record business object manually from the Business Object Editor.

  1. Open the Business Object Editor for an attachment business object and click the Attachments tab.

    Description of attachment-bo-editor.png follows

    Description of the illustration attachment-bo-editor.png

  2. Select Is attachment.

  3. Click the Choose icon ( Edit icon ) next to Data Business Object to open the Choose a Business Object dialog.

    The dialog displays the paths for all child business objects for the Attachment Record Business Object.

  4. Select the required child Attachment Data Business Object from the list, then click OK.

    Description of child-bo-dialog.png follows

    Description of the illustration child-bo-dialog.png

    The child business object must support sending and receiving attachment data. This means that the child endpoint has a collection path that supports:

    • GET to retrieve attachment data
    • PUT to send attachment data
    • Request content type of application/octet-stream

    The path may be similar to this: {parent attachment record item path}/enclosure/FileContents.

  5. Click the Choose icon ( Edit icon ) next to Type Field to open the Available Business Object Fields dialog.

  6. Select the field to represent the attachment type, then click OK.

    Description of available-bo-fields.png follows

    Description of the illustration available-bo-fields.png

    This field must be a string field with valid values of TEXT (text type attachment), FILE (file type attachment), and WEB_PAGE (web url-based attachment). Typically, the field ID for this field is DatatypeCode.

  7. Use the available Choose icons to set the File Name and URL fields.

    Field Description
    File Name Field A string field representing the attachment file name. This field is used for text and file type attachments. Typically the field ID for this field is FileName.
    URL Field A string field representing the attachment URL. This field is used by web page type attachments. Typically the field ID for this field is Url.
  8. When finished, close the open editors using the Done buttons.

If properly configured, the resulting Table layout includes a Local File Path column that keeps track of the location of local copies of attachments. Selecting cells in the table opens an attachment pop-up that can be used to interact with attachments. See Manage Attachments in Managing Data Using Oracle Visual Builder Add-in for Excel.

Description of local-file-attachment-table.png follows

Description of the illustration local-file-attachment-table.png

Known Limitations