Home > Cloud Cruiser 4 > Administering > Managing reports > Loading and removing reports

Loading and removing reports

Use the loadreports command to load reports into Cloud Cruiser or remove reports from Cloud Cruiser. If you do not have the <install_directory>/bin directory in your path environment variable, you can run the command from that directory.

Previously loaded reports will be updated with the new report if loaded again. The report title, group association, hidden status, and so on are preserved when reloading a report. To force all properties to be updated, you must first delete the loaded report and then reload the report.

Loading reports

When reports are loaded, there must be an accompanying resource bundle file with the same base name as the report file. For example, for MyReport.jrxml there must also be a MyReport.properties file that contains resource strings for a default report title and any parameters for which the user should be prompted.

The default title from this file is used to set the report title when initially loaded. Changes made to the com.cloudcruiser.report.default_title property after the report is loaded will not affect the title seen in the report tree.

To load all reports in the standard report location

  • To load all reports in the standard report location (<install_directory>\reportfiles ) and the custom report location, run the loadreports  command without arguments.

    The custom report location is defined in the Administration > Configuration > General > Directories tab of the Cloud Cruiser portal. By default, the custom report location is C:\cc-working\custom_reports.

To load all reports in a specific directory

  • Run the loadreports command with the directory path as an argument. For example, to load all reports in the custom_reports directory, enter:
    loadreports C:\cc-working\custom_reports

To load a single report

  • Run the loadreports command with the report filename (including the absolute or relative path) as an argument. For example, to load the CustomInvoice report in the custom_reports directory, enter:
    loadreports C:\cc-working\custom_reports\CustomInvoice.jrxml

To load multiple named reports

  • Run the loadreports command with the report filenames (including the absolute or relative paths) as an argument. For example, to load the CustomInvoice and CustomUsers reports in the custom_reports directory, enter:
    loadreports C:\cc-working\custom_reports\CustomInvoice.jrxml C:\cc-working\custom_reports\CustomUsers.jrxml

Removing reports

Use the loadreports command with the -d option to remove reports from Cloud Cruiser.

To remove a report from Cloud Cruiser

  1. Enter the following command, where <report_location> is the location of your report files:
    loadreports -d <report_location>
    For example, to remove the Custom Invoice report from the C:\cc-working\custom_reports directory, enter loadreports -d C:\cc-working\custom_reports\CustomInvoice.jrxml
    To unload a report from an alternate application instance, include the argument -a <application>.
  2. In the <report_location> directory, delete that .jrxml file and all other files associated with the report.
    For example, there might be several associated .properties files.
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP