Formatting a decision table

You can define format settings for a table, a column, or for individual cells.

About this task

Procedure

To format a decision table, a column, or an individual cell:

  1. Follow one of the following procedures, depending on what you want to do:
    To format a decision table: To format a column: To format a cell:
    1. Right-click the header part of the decision table, and then click Decision Table Properties.

    2. In the Decision Table Properties dialog, click the Format tab.

    3. Apply the required formatting and font settings.

      You can set the foreground color and font of the column headers and row headers. You can also set the foreground color, background color, and font for all cells throughout the table.

    1. Right-click the header part of the decision table, and then click Format.

    2. In the Format Column dialog, apply the required alignment, colors, font, and format.

      To format the contents of the cells in the column, do one of the following tasks:

      • From the Format Statement list, select one of the pre-configured formats. The formats available depend on the column data type: string, number, date, or time.

        Use the Preview field to verify the selected format.

        For example, in a column of cells that contain numbers, select the format {0, number, currency} to display the number in currency format using the currency of the currently active locale.

      • Enter the required format in the Format Statement field. Use a zero enclosed in curly braces to represent the cell contents. For example, to display numbers in currency format using a specific currency symbol such as £, enter the following format: £{0}.

      Rule Designer applies the settings you specify to all the cells in the column and its subcolumns.

    1. Right-click the cell you want to format, and then click Format cell.

    2. In the Format Cell dialog, apply the cell tooltip, alignment, colors, font and format. You can override the formatting options at sub-cell level.

      To format the cell contents, do one of the following tasks:

      • From the Format Statement list, select one of the pre-configured formats. The formats available depend on the cell data type: string, number, date, or time.

        Use the Preview field to verify the selected format.

        For example, in a cell displaying a number, select the format {0, number, currency} to display the number in currency format using the currency of the currently active locale.

      • Enter the required format in the Format Statement field. Use a zero enclosed in curly braces to represent the cell contents. For example, to display the number in currency format using a specific currency symbol such as £, enter the following format: £{0}.

      Rule Designer applies the settings you specify to the cell.

  2. Click OK to save your settings.