Adding and populating rows

You can add blank rows, partially completed rows, and otherwise rows to a decision table. You can also move, split, merge and delete rows, and populate them with values from an enumerated domain.

Adding a blank row

You add and populate a row for each rule you want to define.

To add a blank row to a decision table:

  1. In the decision table editor, right-click a cell in the first column.
  2. Hover over Insert row and click either Above or Below. A new row is added to the table.

Adding a partially completed row

You can add partially completed rows to a decision table.

To add a partially completed row:

  1. In the decision table editor, right-click the condition cell immediately next to the cell containing the value or values you want to copy to the new row.
  2. Hover over Insert row and click either Above or Below. A new row is added that contains the value or values of the copied row.

Adding and clearing an otherwise row

You can set a row to otherwise in a condition column for when none of the other conditions in the column are correct. The otherwise row runs when the conditions next to the otherwise statement are true, but none of the cases in the same group as the otherwise cell are true.

To set a row to otherwise:

  1. Right-click the condition cell and click Set to otherwise. The word Otherwise is shown in the first cell of the row.
  2. To clear the otherwise row, right-click the row and click Clear.

Moving rows

You can move rows up or down in a decision table by using the decision table editor.

To move a row in a decision table:

  1. In the decision table editor, right-click a cell in the row you want to move.
  2. Click either Move up or Move down.

Fitting rows to content

You can automatically resize one or more rows in a decision table to display content fully. The cells in rows can truncate content. Follow this procedure to fully view the values in a row.

To fit the contents in a row in a decision table:

  1. Right-click the first cell of the row and hover over Resize.
  2. Select one of the options:
    • Fit selected row(s) to content: Resizes the selected rows and shows their entire contents.
    • Fit all rows to content: Resizes all the rows and shows their entire contents.
  3. Save your changes.

Splitting rows

You can split a row if one of its columns has two subcolumns. When a row made up of grouped cells is split, the values of the column are split across two rows. The other values in the row are duplicated in the new row.

To split a row:

  1. Right-click a cell in the row you want to split.
  2. Click Split.
  3. To specify the empty values, double-click an empty cell and enter or select the required value, as appropriate.

Deleting rows

You can delete decision table rows.

To delete rows:

  1. In the decision table editor, right-click the row you want to delete.
  2. Click Delete to remove the row.