Cloud Software Group, Inc. EBX®
Data Exchange Add-on Documentation > User Guide > Getting Started with Data Exchange
Navigation modeData Exchange Add-on Documentation > User Guide > Getting Started with Data Exchange

Exporting data

Export overview

Depending on what format you are exporting to, the add-on presents you with slightly different options. In most cases you will see a configuration page, and mapping pages. The sections below cover options relevant to each export format type:

Attention

When exporting XML or Excel, you can export multi-valued complex fields. All levels of a complex field can be exported to XML. However, only the first level can be exported to an Excel file.

Exporting a table view

When exporting to CSV or Excel formats, you can select an EBX® table view to export. When you choose to export a view, only records contained in that view are exported. For example, if you have a view that filters and displays records that have a particular country code, only these records are included in the export operation.

As shown below, the option to choose a view to export (when exporting a single table) is available on an export's Configuration page:

/export_view.png

As shown below, the option to choose a view to export (when exporting multiple tables) is available on an export's Mapping table page:

/export_view_dataset.png

Exporting to CSV

You can run the Export CSV service from a table's Actions menu. The add-on only exports a single table's contents at a time. You only need to edit configuration settings and create column mappings. The settings in the configuration page determine the exported file's structure. For example, you can specify which separators and date formats to use. Also, you can load preferences that automatically setup the configuration and mapping. Additionally, you can select a Java class to transform data on export.

/export_csv_mapping_page.png

Separator behavior

Exported CSV files use new lines (line feed and carriage return) to separate records. When configuring CSV export you can use the following options to define how the exported file separates fields and encapsulates values:

A conflict would occur when an exported field includes the same character used as a separator. However, the add-on automatically uses double quotes as escape characters to ensure data integrity. The following sample shows a scenario where a comma is specified as the separator character and appears in the Salary field's value:

pk1,Salary
1,"50,000"

You can use the Delimiter option to override default behavior. As shown below, the delimiter marks the start and end of each field eliminating the necessity of escape characters:

|pk1|,|Salary|
|1|,|50,000|
Note

The add-on imports correctly from exported files where data values include the defined separator. These files also display correctly in spreadsheet programs. However, if you define a delimiter and view the file in a spreadsheet program, the display might not reflect the actual data structure.

Exporting to Excel

You can run the Export Excel service from a dataset, or table Actions menu. Running the service from a dataset allows you to export data from multiple tables to multiple sheets in the Excel file. When you run the service from a table, you can select records to export, or export all table contents. The following sections provide more information on the options available depending on how you execute the export operation:

Note

If invalid foreign keys exist, they will be included in the export and highlighted in the Excel file.

Attention

To avoid issues during export of a large Excel file, please use only the default options and do not activate the Include validation messages, Export related data, or Export permalink for the primary or foreign key options.

Attention

Using JDK 11 can cause issues in Linux environments when exporting Excel files. As a workaround, you can install the fontconfig package.

Exporting from a table

When you export from a table, you can select the records to include in the export, or export all table content. Just select the records before running the service if you only want to export a few. The configuration page allows you to determine the exported file's structure, load preferences, and select a Java class for data transformation. As shown in the following image, you can also create a table template to customize look and feel of the exported file. Once configuration is complete, use the mapping page to determine how and which source table columns map to the target file columns and choose whether to save a preference.

/export_excel_config_table_template.png

Exporting from a dataset

In addition to the options available when exporting from a table, you can choose one or more tables from the dataset to export. The add-on exports each table into a separate sheet in the Excel file.

/export_excel_select_tables.png

After selecting the tables to export the add-on presents you with two pages that allow you to map which sheet the tables are exported to and the source table columns with the target sheet columns. As shown below the column mapping page uses tabs to indicate which table/sheet you are mapping.

/export_excel_column_mapping.png

Including messages in exported files

You can include validation messages in exported Excel files. The add-on highlights fields and rows containing messages using: red for error, orange for warning, and blue for information. If a message applies to a table, the add-on creates a new sheet in the exported file and appends "-MSG" to the name.

As shown below, select the level(s) of messages to include in the export. Note that exporting messages forces validation for all tables included in the export.

/export_include_messages.png

The following image shows an example of how messages are included in an exported Excel file:

/export_include_messages_sample.png

SQL export

The following steps demonstrate how to use the Export SQL service:

  1. From a table's Actions menu, select the Export SQL service, the Configuration screen displays.

    /sql_export_1.png

  2. From a table's Actions menu, select the Export SQL service, the configuration screen displays as shown below:

    /sql_export_2.png

  3. Choose an external database table from the SQL table or view drop-down list and select the Java class used to map columns. Once you've finished the configuration, click Mapping to display the column mapping screen.

    /sql_export_3.png

The image below shows the result of exporting to the Customers table on the external database.

/sql_export_4.png

/10000000000002DE000000D66C2DDE38.png

XML export

If the table is not defined in the data mapping configuration when you attempt to export to XML, Default XML format displays as the only available target application. This default format, provided by the add-on, allows you to easily get an XML file and doesn't require a specific data mapping configuration.

If a field name has to be renamed when exporting to an XML file, or another instance arises where data in the source and target differ, you have to specify a data mapping configuration. In these types of cases, other target applications display as options (see the rest of this user guide).

/export_xml_default.png

When the Use header option is used, the exported XML file contains a standard header with the following data:

/10000000000001E700000157881AEC3C.png

To help you locate data linked to specific records, the add-on allows you to export related data when exporting to:

The option to export related data is only available when exporting an individual record, or from a table. To include related data in a CSV or Excel export, use the following checkboxes for the Export related data property on the export's configuration screen:

The following images highlights the options when exporting Excel:

/export_related_records.png
Note

The export only includes data on which you have sufficient permissions.

Enumeration export options

The add-on allows you to include enumerations in CSV and Excel exports of tables, or individual records. As highlighted below, the options are available from the main configuration page (the image shows Excel export, CSV only includes the Export label option):

/export_enums_main_config.png

The following describes behavior for each supported export type: