Excel files

In the Business console, you can copy rows, columns, and cells between Excel files and decision tables. You can also export decision tables as Excel files.

You can use Excel to work offline on the contents of a decision table, and then transfer the data by copying it from the Excel source file to the decision table.

Moving information between the two environments can alter data. You can transfer only values and not data type information. For example, the Boolean values true and false are lowercase in decision tables. However, Excel automatically displays Boolean values in uppercase: TRUE and FALSE. In this case, you must set Excel to treat the Boolean values as text to retain their lowercase format for their transfer back to the decision table.

The following instructions explain how to:
  • Copy data from a decision table to an Excel spreadsheet, and then copy the data back to the decision table.
  • Export a decision table as an Excel spreadsheet.
Note: The menu commands do not work in all browsers. You must use the keyboard shortcuts in some browsers. Also, when pasting from an external source, specifically from Excel, make sure that there is no region in the table that is marked as the paste source, which is indicated with an orange rectangle. The paste operation always selects an available source within the table first, and then checks for data in the clipboard.

Transferring data to Excel

To transfer values from the Business console to Excel:
  1. In the decision table, select what you want to transfer. You can select individual items, a group of items (rows, columns, or cells), or all the numbered rows.
  2. In the Excel spreadsheet, right-click a cell, and click the appropriate paste command.
The contents that are copied from the decision table are added to the Excel spreadsheet.

Transferring data to the Business console

To transfer values from Excel to the Business console:

  1. In the Excel spreadsheet, select what you want to transfer. You can select individual items, groups (rows, columns, or cells), or all the rule rows in the Excel spreadsheet.
    Note: The content that you select must match the content of the decision table. If the contents of a transfer does not match the contents of the decision table, the decision table editor can block the transfer or show an error.
  2. Right-click the insertion point in the decision table, and click Paste.

How you transfer information depends on its role and formatting. The contents of cells can be transferred between cells, while a complete row or column must be transferred as a group of cells.

You can add new rows to a decision table by copying them from an Excel spreadsheet to an empty row in the decision table.

Exporting a decision table to an Excel spreadsheet

To export an entire decision table from the Business console to Excel, select your decision table in the Decision artifact tab, and click Download this decision table as an Excel file. You can also click Download as Excel in the Decision Table view.

You can then share your decision table, as an Excel spreadsheet, for reviewing or reporting purposes.

If you have several decision tables in a project, you can download them as a single Excel spreadsheet. In the Decision artifact, select the check boxes next to your decision tables, then click the export button in the toolbar. Your tables are exported in one file, with a table per sheet.

When you generate the Excel file, condition cells are merged. If you primarily want to generate the file to edit it and then paste the modifications into the Business console, you should deactivate condition cell merging. Set the decisioncenter.web.dt.excelExport.mergeConditionCells preference to false.