You can add rows to and remove rows from a decision table,
and edit the contents of a row using the decision table editor.
About this task
To edit a row, click in the decision table on the appropriate
cell in the row. The editor opens, showing the information for the
cell you clicked on, and the toolbar displays the tasks you can carry
out:
Note: You cannot edit rows if the column
is locked. You set or release locks through the options panel for
each column, or through table properties for global locks.
Click
any row number to display the rule in the editor in its usual if-then form.
Procedure
The editor toolbar provides various options for adding,
deleting and editing rows in decision tables.
- To add a row:
- Click the appropriate cell in the row before or after
the position in which you want to add the new row.
Clicking
the correct cell is particularly important when you add a row from
a grouped cell.
- In the editor toolbar, select how to add the row:
- Inserts the row above the cell you select.
- Inserts the row under the cell you select.
-
Inserts an Otherwise row under the cell you select.
- Inserts as many rows as there are remaining
possible values for that column. This button is available only when
the column contains grouped cells.
- Complete the cells of the new row.
- To delete a row:
- Click the appropriate cell in the row you want to delete.
Clicking the correct cell is particularly important when
you delete a row from a grouped (partitioned) cell.
- In the editor toolbar, click
.
- To move a row up or down:
- Click a cell in the row you want to move. The chosen
cell must be in a condition column.
- In the editor toolbar, click
to move the row up or
to move the row down. If you click a grouped cell, the row can be moved only within
its partition.
- To split a row:
- Click a cell in the row you want to split. The chosen
cell must be in a condition column that has subcolumns.
- In the editor toolbar, click
to split the row.
- Complete the empty values.
- To merge rows:
- Click a cell in the row you want to merge. The chosen
cell must be in a condition column, and the row itself must be completed.
- In the editor toolbar, click
to merge the row with the one
above it, or
to
merge the row with the one under it. When you merge
rows, the values in the condition part merge, but the merged row retains
the values of the row that was above for the action parts of the row.