Adding and removing columns

You can insert additional condition and action columns into a decision table, and remove any columns you do not want.

About this task

You can insert additional condition and action columns into a decision table, and remove any columns you do not want.

Procedure

To add or remove columns:

  1. Use the decision table editor to add or remove the required columns, as summarized in the following table:
    To add a condition column: To add an action column: To remove a column:
    1. Right-click a condition column next to the place you want to insert the new condition column.
    2. Click Insert Condition Column Before button Insert Condition Column Before or Insert Condition Column After button Insert Condition Column After.

      A new condition column is added to the decision table.

    1. Right-click an action column next to the place you want to insert the new action column.
    2. Click Insert Action Column Before button Insert Action Column Before or Insert Action Column After button Insert Action Column After.

      A new action column is added to the decision table.

    1. Right-click the column you want to remove.
    2. Click Remove Condition Column or Remove Action Column.

      The column and any dependent cells are removed from the decision table.

      If you want to remove an action column that is visible, but all other action columns are hidden, you must first make at least one other action column visible: right-click the header of the column that you want to make visible, click Edit action column and check the Visible check box.

    Note: If you insert a column at the first position in the table, you create a new Root partition whose children are all non-empty conditions of the existing first column.
  2. Save your changes.
    Attention: You can remove or add sub columns by changing the definition of the column. When you do, there is no automatic refactoring of the data contained in the sub columns. To avoid losing data, you can copy the content of the sub columns in an excel sheet, add a column with the new definition in Rule Designer, and paste the data in the new sub columns.