Pentaho Report Designer Reporting System - Getting Detailed

Brief introduction

Pentaho Report Designer (hereinafter referred to as PRD) is Pentaho open source system of data reporting module , expected as a Java project reporting capabilities to integrate use.

Stage design in advance the PRD good way to end before and after the report output report for retrieval, this paper also describes the usage of the PRD.

As used herein version PRD7.1.0.0

Installation and Configuration

Environmental requirements

  • Java, JDK1.8
  • Maven, Verson3+

Operation mode

    1. 检查是否配置好本地Java与Maven环境
  1. Decompressing the downloaded package, the package should be roughly the structure shown in (a different version may have slightly different)

  1. Run launcher.jar, or use the command on the command line ./report-designer.shto start the PRD.

Tutorial

Teaching includes data source configuration, the raw data acquisition, report layout, formatting report data, report preview, report publishing and report access these areas.

Herein by way of manually created for report configuration, in addition to the Report Wizard manner, in this little noted, the difference is to select Report Wizard in a new report rather than a New Report.

Source configuration data to the original data acquisition

  1. PRD software function module integration is extremely high, and therefore start time longer, need to be patient .

  1. After the software starts, select New Report to create a report into the Untitled Report tab, Ctrl + S to save the report and name.

  1. Select interface right Structure / Data column Data, and then click the top left column databases yellow Logo, configuration data sources. In this paper, JDBC database connectivity.

  1. Just click on the green plus button, select the connection type, fill in the name of setting information, the normal test to confirm the link, add a complete database connection configuration. (Note: If MySQL5.7 and add more databases or other tips Driverabnormalities, you should download the corresponding driver jar package and paste 软件根目录/lib/jdbcinside, and restart the software to take effect)

  1. It has added green plus button in the upper right corner click connection configuration, fill in the name of the query, add a SQL query below, you can click on the lower right corner of Preview completed the preview, click on the bottom right corner after confirmation OK, to complete the acquisition of raw data. (Query writing after the original data is complete and save the query name can be seen in a folder named in Structrue / Data DataSets the next label in the Data column)

Report layout and formatting

Layout Design

PRD module using drag and drop controls fixed manner to the page block for processing.

Modular structure
  • Page Header: Content header set here will be displayed on every page (report appears pagination)
  • Report Header: Report Header only at the beginning of the report show (if it appeared no longer appear behind other page)
  • Details Header: the column names of Configuration Details
  • Details: Column configured here multiple rows of data (the data will be displayed according to a data line)
  • Report Footer: Similar Report Header only appear at the end of the report
  • Page Footer: Page Header similar show at the end of each page
Controls
  • Label: Title
  • Horizontal-Line: horizontal line

The more content control, is not here to say, we can study on their own.

Examples

  1. Data will be dragged from the field to the right of the area and to report Details adjusted position.

  1. In the column Structure Structure / Data, right-click GroupHeader, it will be displayed.

  1. From the left toolbar will be within the control needed as Label and Horizontal-Line and other dragged into the page, adjust the position.

  1. Add Style / common.format the attributes Attributes Attributes column format need fields, such as date formats. Specific reference cell in Excel format custom manner.

Preview and publish reports

  1. Click on the top left of the page preview button eyes after configuration is complete.

  1. Confirm save correct, and is ready to publish to access BI Server for external calls.

  1. Fill in the parameters BI Server.

  1. Configuration type the name of the directory publishing and output, etc., etc.

  1. The emergence of pop that is released is completed.

Report access and access

  1. Login BI Server

  1. Click on the top left corner Browse Files, locate the file directory configuration according to the time of publication.

  1. Click Open in a new window to browse.

  2. Copy link address to open a new window, for example http://localhost:8047/pentaho/api/repos/%3Apublic%3A%E6%B5%8B%E8%AF%95%E5%B7%A5%E7%A8%8B%E7%94%A8%3ADemoReport.prpt/viewer, the end of /viewerchanged /reportcan be accessed as a resource and access. Under no circumstances browser cache, each will get the latest real-time data acquisition.

References

Guess you like

Origin www.cnblogs.com/ZoraZora59/p/11615346.html