14.5. Import and Export
Dashboard Builder provides the ability to export and import workspaces, KPIs, and data sources between two Dashboard Builder installations.
In general, it is possible to export the mentioned assets only using the Dashboard Builder web user interface. However, you can import the assets either in the web user interface, or by using the deployment scanner.
The deployment scanner is a subsystem of Red Hat JBoss Enterprise Application Platform that allows you to place the exported assets into the given folder inside the web application. Once the application has started, it scans the deployment folder and imports all the available assets. Note that the assets can be imported only during the deployment and not during the runtime.
14.5.1. Importing and Exporting Workspaces
By importing or exporting workspaces, you can move a set of pages between two Dashboard Builder installations. The procedure moves an envelope being currently used by the workspace, all the sections that compose the workspace and all the panels used in the workspace sections.
Procedure: Exporting Workspaces
- In Business Central, go to Dashboards → Business Dashboards.
- In the menu on the left, click Administration → Import and export.
- Choose the Export Workspaces tab.
In the list of all existing workspaces that opens, select the ones you want to export and click Export.

- Click Download to download a single XML file containing the workspace definitions.
Procedure: Importing Workspaces Using Web UI
- In Business Central, go to Dashboards → Business Dashboards.
- In the menu on the left, click Administration → Import and export.
Choose the Import Workspace tab.

- Upload an XML file that contains one or more workspace definitions. Uploading a ZIP archive is supported as well for backward compatibility.
- Click Import.
Procedure: Importing Workspaces Using Deployment Scanner
-
Make sure that the XML workspace definition file has the extension
.workspace. Move the file into the
/jboss-eap-6.4/standalone/deployments/dashbuilder.war/WEB-INF/deploymentsdirectory.If the workspace already exists (there is a workspace with the same logic identifier), the file will be overwritten. Note that these two files do not have to have the same name in order to be replaced.
The workspaces are imported once during the application deployment.
14.5.2. Importing and Exporting KPIs
By importing and exporting KPIs, you can move key performance indicator definitions (the KPI type, its columns and display configuration) and their data providers between two Dashboard Builder installations.
Procedure: Exporting KPIs
- In Business Central, go to Dashboards → Business Dashboards.
- In the menu on the left, click Administration → Import and export.
Choose the Export Dashboards tab.
A list of all KPI definitions in your application opens. You can export one or more of them into a single XML file.

Select the KPIs you want to export and click Export .

Procedure: Importing KPIs Using Web UI
- In Business Central, go to Dashboards → Business Dashboards.
- In the menu on the left, click Administration → Import and export.
Choose the Import dashboards tab.

- Upload an XML file that contains one or more KPI definitions and click Import.
Procedure: Importing KPIs Using Deployment Scanner
-
Make sure that the XML KPI definition file has the extension
.kpis. Move the file into the
/jboss-eap-6.4/standalone/deployments/dashbuilder.war/WEB-INF/deploymentsdirectory.If the KPI or the data provider already exists (there is a file that contains a KPI or a data provider with the same logic identifier), the file will be overwritten. Note that these two files do not have to have the same name in order to be replaced.
The KPIs are imported once during the application deployment.
14.5.3. Importing Data Sources
At present, it is not possible to export data sources.
By importing and exporting data sources, you can move one or more external data source connection configurations between two Dashboard Builder installations.
Since the data sources definitions consist of a very small number of attributes, it is possible to create them in your target environment manually by using the External connections panel.
Procedure: Creating Data Sources Manually Using Web UI
- In Business Central, go to Dashboards → Business Dashboards.
- In the menu on the left, click Administration → External connections.
Select the type of a new data source (either the JNDI or a Custom DataSource) and fill in the data source details.

Click Check DataSource to validate the details.
If the validation ends up successfully, the following message appears:
The DataSource is well configured.
- Click Save.

Procedure: Importing Data Sources Using Deployment Scanner
Create the data sources definition files with the following supported properties:
common properties:
-
type: the type of the data source (JNDIorJDBC), -
name: the data source name, -
testQuery: a definition of a query used for testing the data source during the instantiation.
-
JNDI data source properties:
jndiPath: the data source bean path.Example 14.1. JNDI Data Source Descriptor
type = JNDI name = myCompanyDataSource testQuery = SELECT count(*) FROM CUSTOMER jndiPath = java:comp/env/jdbc/mycompany
JDBC data source properties:
-
jdbcUrl: the JDBC URL for the connection, -
driverClass: a fully qualified class name of the used driver, -
user: the connection user name, password: the connection password.Example 14.2. JBDC Data Source Descriptor
type = JDBC name = myCompanyDataSource testQuery = SELECT count(*) FROM CUSTOMER jdbcUrl = jdbc:postgresql://mydomain.com:5432/mycompany driverClass = org.postgresorg.postgresql.Driver user = system password = dba
-
-
Make sure that the data source definition file has the extension
.datasource. Move the file into the
/jboss-eap-6.4/standalone/deployments/dashbuilder.war/WEB-INF/deploymentsdirectory.If the data source already exists (there is a file that contains a data source with the same logic identifier), the file will be overwritten. Note that these two files do not have to have the same name in order to be replaced.
The data sources are imported once during the application deployment.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.