10 Appearance of an Integrated Excel Workbook

Oracle Visual Builder Add-in for Excel automatically manages the appearance of an integrated Excel workbook through built-in styles and data format types.

The add-in automatically formats cells in a workbook by creating a set of named Excel styles when the workbook is first initialized. The styles created by the add-in are consistent with Oracle Alta UI standards and Oracle accessibility guidelines. The format portion of the styles is sensitive to the user's preferences as defined in the Windows region settings. So a US user will see US dates and a French user will see French dates.

Once the styles are initialized, the add-in applies those styles to the integrated cells, according to the field's properties, at key points (such as during a data download). Typically, the styles are created once for a workbook and are never updated, but you can take advantage of the options described in this chapter.

Reset Workbook Styles

You have the option to reset styles in an Excel workbook when a new add-in version has updated style definitions and you want to use those styles in an older workbook, or when a user has changed style definitions in a workbook and wants to revert to the current definitions.

To reset the style definitions in a workbook, select Reset Styles from the Advanced menu.

Note:

The Reset Styles command is only available when the designer tools have been enabled.
Description of reset-styles.png follows
Description of the illustration reset-styles.png

You are prompted to confirm. After confirmation, each style definition used by the add-in is updated. The list of styles includes any style that would be created by the current add-in, including the Normal style.

Choose Field Formats

Cell formats in an Excel workbook are applied by the add-in according to a field's data type and based on whether the field is editable (create or update). While this behavior works for most scenarios, sometimes you might want to extend a field's formatting options.

Let's consider the example of an employee workbook that includes ID and Salary fields, both of which are integers. A value of 10,000 for the Salary field can be formatted with the thousands separator (10,000 versus 10000). But an ID value of, say, 12300 seems odd with the thousands separator (12,300). In this case, you can override the ID field's default format to choose a format without the thousands separator.

To override the default format for a field:
  1. In the Layout Designer's Columns tab, select the field you want to update and click the Edit icon.
  2. In the Business Object Field Editor that appears, select an option in the Format drop-down. The default value is Default, which tells the add-in to apply the usual automatic styles without any override.

    Remember, the format types shown to you are based on what's appropriate for the field's data type. In this image of an employee's workbook, the ID field uses the Integer data type and the available options let you format the ID with or without the thousands separator. The options also follow user preferences as defined in the Windows Region settings, so a US user will see a decimal point (π = 3.14) while a French user will see a decimal comma (π = 3,14).

    Description of field_format.png follows
    Description of the illustration field_format.png
  3. Click Done.
  4. Click Download Data to process the change.

Set a Default Value for a Business Object Field

You can set a default value for a field so that cell has this value when a business user creates a new row. Configuring default values for your integrated workbook can save business users time by automatically populating cells with pre-set values.

Consider an integrated workbook with a table layout for a Sales Orders business object. This business object may include a Boolean field, "SubmittedFlag", that indicates if the sales order has been submitted. Since a new sales order is not going to be submitted yet, it makes sense for Oracle Visual Builder Add-in for Excel to create the new row with a value of "False" in the SubmittedFlag cell.

If a salesperson needs to add a large number of sales orders, having an initial value of "False" can save a lot of time.

You can set a default value for a business object field with a data type of integer, decimal number, Date (no time), Boolean, and string. A default value can be a constant or an expression. Expressions must follow the add-in's expression rules, in particular the escaping ({ }) and literal values rules. Reserved words are not supported. See About Expressions.

Note:

This feature is available for business object fields and row variables. It is not available for other fields (such as custom action payload fields, row finder variables, list of values fields, and ancestor column fields) and data types (Date-time and Object).

To set a default value for a business object field, open the Business Object Field Editor for the desired field, then type a value in the Default Value field.

This image shows the Business Object Field editor for the Boolean field, "SubmittedFlag":



Note:

Default values must match the data type of the configured field. For example, the default value for a Boolean field must be either "True" or "False".

When a business user creates new rows in an integrated workbook, the add-in populates the Submitted Flag column with the default value.



Add Help Text to Your Workbook

You can add help text for business object fields you use in forms and tables in your workbook to provide help to your business users. Your users will see a popup with this help when they select a form field or column header in a layout.

You can also add help to:

  • Custom actions
  • Custom action payload fields
  • Row finders
  • Row finder variables
  • Row variables

You can add help text for an individual field using the editor for that field. You can also copy descriptions included in the service metadata document to the relevant Help Text properties. For the steps to copy descriptions to help text, see Copy Descriptions to Help Text.

To add help text for an individual field, open the editor for the field and type help text in the Help Text field on the General tab, as shown here:
The Business Object Field Editor showing the Help Text property

Help Text values, as well as Title values, can be localized. See Manage Workbook Translations.

Once configured, help text for business object and item-level custom action payload fields is displayed when the user selects the form field label or table column header in a layout.
Help text for a form field label

Help text for custom actions and business object-level payload fields is displayed in the custom action wizard, either in the Description field for custom actions or in a popup when you hover over the payload field. Help text for row finders and variables is displayed in the Search Editor when you hover over the finder or variable label.

Copy Descriptions to Help Text

If desired, you can copy the Description property values to the Help Text properties for a given catalog.

When Oracle Visual Builder Add-in for Excel creates a catalog, it can harvest descriptions from the service's metadata and populate the description properties for various elements such as business object fields, custom actions and their payload fields, and row finders and their variables.

These descriptions may be technical in nature and might not be suitable for business users. As a result, these descriptions are not displayed to business users and are not "localizable".

OpenAPI does not specify any property that corresponds to "help text". Furthermore, none of the supported REST frameworks provide help text or "tooltips" using x-hints, for example. As a result, the Help Text properties are empty for new catalogs.

If your REST service provides business-user friendly descriptions in the metadata, you can copy these values to the help text properties in one go.

Before you begin, make a backup copy of the source workbook in case you don't like the results.

To copy descriptions for a catalog to the help text properties:

  1. Click Manage Catalogs.
  2. From the Manage Business Object Catalogs window, select the desired catalog from the list.
  3. Click the Menu icon (Menu icon), then select "Copy Descriptions to Help Text" from the popup menu.
  4. When prompted to confirm the operation, click Yes.
  5. When the copying is complete, review the Help Text values in the catalog to make sure they are appropriate for your workbook's users.

    Note:

    You may need to remove markup since the help text values are displayed as is.

When you've copied the descriptions over and refined the Help Text values as you see fit, you might want to consider translating these text strings into other languages. See Manage Workbook Translations.