Exporting BI Publisher Reporting Objects

Use the export command to export either a single reporting object or a set of BI Publisher reporting objects under a specified folder.

There are two export commands:

  • -export — Use this command to export a single report object

  • -exportfolder — Use this command to export a folder and its contents

The table below describes the supported parameters for the -export and -exportfolder commands.

Parameter Used With Sample Description

catalogpath

-export -exportfolder

/Samples/Financials/Balance+Letter.xdo

The path to the object in the catalog. If there are spaces in any of the names, use the '+' sign to substitute.

target

-export

/tmp/Financials/BalanceLetter

The destination directory in which to place the extracted reporting objects.

basedir

-exportfolder

/home/bipub/samples

The base directory into which to place subfolders of extracted reporting objects. When present, data models are saved to {basedir}/datamodels; reports are saved to {basedir}/reports; style and subtemplates are saved to {basedir}/templates.

extract

-export -exportfolder

true/false

The default is false, which means that the utility exports the reporting object in a zip format that contains all the related files such as '.xdo', '.rtf', '.cfg', and so on. If the value is set to 'true', then the utility exports the reporting object-related files under the specified target folder.

subfolders

-exportfolder

true/false

When you specify a folder as the "catalogpath" parameter you can use this "subfolders"' parameter to control whether to download all subfolder content. If you specify true, then all reporting objects in all subfolders are downloaded. If you specify false, then subfolder contents are not downloaded.

overwrite

-export -exportfolder

true/false

Specify true to overwrite existing objects in the target area.

Example Export Command Lines

Refer to the examples below on how to use the utility to export the reporting objects.

Exporting a Single Report in Archive Format

The following example exports the reporting object in a zip format. The zip file contains all the reporting object related files such as .xdo, .rtf, .cfg, and so on.

To extract a report in archived format use the ".xdoz" extension for the target. To extract a data model, use the ".xdmz" extension.

$ BIPCatalogUtil.sh -export catalogpath=/Samples/Financials/Balance+Letter.xdo target=/home/bipub/reports/BalanceLetter.xdoz extract=false

Exporting a Single Report with Files Extracted

The following example extracts the reporting object-related files to a directory named "/home/bipub/reports/BalanceLetter". Existing files are overwritten.

$ BIPCatalogUtil.sh -export catalogpath=/Samples/Financials/Balance+Letter.xdo target=/home/bipub/reports/BalanceLetter extract=true overwrite=true

Exporting a Set of Reports to a Specified Folder

The following example extracts all the reporting objects under the "/Samples" folder and its subfolders in the catalog.

Data models are saved under {basedir}/datamodels. Reports are saved into {basedir}/reports. Style and subtemplates are saved into {basedir}/templates.

$ BIPCatalogUtil.sh -exportfolder catalogpath=/Samples basedir=/home/bipub/samples subfolders=true extract=true overwrite=true