creating reports with jreport designer - informatica library/1/0690... · 3 step 2. create the...

19
© 2014 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. All other company and product names may be trade names or trademarks of their respective owners and/or copyrighted materials of such owners. Creating Reports with JReport Designer

Upload: others

Post on 21-May-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

© 2014 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. All other company and product names may be trade names or trademarks of their respective owners and/or copyrighted materials of such owners.

Creating Reports with JReport Designer

Page 2: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

2

Abstract This document describes the steps to create a report using JReport Designer, publish the report to ILM Data Visualization server and download the report from ILM Data Visualization server.

Supported Versions Data Archive 6.1.1

Table of Contents Abstract ............................................................................................................................................ 2 

Supported Versions ......................................................................................................................... 2 

Table of Contents ............................................................................................................................ 2 

Overview .......................................................................................................................................... 2 

Prerequisites .................................................................................................................................... 2 

Step 1. Start JReport Designer ........................................................................................................ 2 

Step 2. Create the Catalog .............................................................................................................. 3 

Step 3. Create the Report .............................................................................................................. 11 

Step 4. Publish the Report to the ILM Data Visualization Server .................................................. 13 

Step 5. Download Reports from the ILM Data Visualization Server .............................................. 16 

Troubleshooting ............................................................................................................................. 18 

Overview This document describes the steps to create a report using JReport Designer, publish the report to ILM Data Visualization server and download the report from ILM Data Visualization server.

Prerequisites Before you create a report with JReport Designer, verify the following prerequisites:

Because JReport Designer has GUI, it requires X-Windows to be installed your UNIX server to start it.

You must have Data Archive and Informatica Data Vault 6.1.1 installed.

Informatica Data Vault JDBC driver, infafas.far file. You can find the infafas.jar file in the <IDV Dir>/jdbc directory.

You must have Java JDK 1.7 installed.

Step 1. Start JReport Designer 1. Go to the downloaded $ilm/optional/Designer directory. 2. Verify that JAVA_HOME is properly set. 3. Copy the infafas.jar file from the <IDV Dir>/jdbc directory. 4. Start the Designer by running the jreport.bat or jreport.sh script.

Page 3: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

3

Step 2. Create the Catalog The reports will be created under the catalog in JReport.

1. If you are running JReport Designer for the first time, you will see the following window.

Select the Create Catalog option. If the JReport Designer window does not open, go to File > CatalogManagement >

New Catalog.

2. Provide the details for the new catalog.

Page 4: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

4

3. In the Catalog Browser, right-click Relational and select Add JDBC Connection.

4. In the Get JDBC Connection Information window, deselect Use ODBC Data Source and select the Driver option. Enter the following information:

Driver. com.informatica.fas.jdbc.Driver

URL Syntax. jdbc://dba@<machine name>:<Server Port>/<Archive Folder>

Example URL. jdbc://dba@IDV_SERVER:8500/Test

In the Options menu, select the Qualifier tab and select 2-Part Names to use the Schema.Table format.

Page 5: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

5

The following figure shows the Get JDBC Connection Information window.

5. In the Add Table window, select your schema and click Load Tables. Then, select the desired tables and click Add. When all the tables are added, click Done.

Page 6: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

6

The following image shows the Add Table window.

6. In the Catalog Browser, expand the JDBC connection that you created, right-click Queries, and select Add Query.

Page 7: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

7

7. In the Query Editor, select Query > Add Table.

8. Select the desired tables and click Add. Click Done when you are finished.

Page 8: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

8

9. When the tables are added, you can see the tables in the Query Editor. Select the columns that you want to display in the report.

Page 9: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

9

10. Click SQL, modify the query, and provide your WHERE clause in the Query window. Click Parse to check if the SQL syntax is correct.

Page 10: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

10

11. Select Add Business View for the query.

12. Drag and drop tables in the Business View.

13. Save all changes and close Catalog Browser.

Page 11: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

11

Step 3. Create the Report 1. Go to File > New > Web Report.

2. Drag any JReport component, such as a table, to the Design pane and select Table Type.

Page 12: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

12

3. Select Business View Object. Add the desired columns and click Next.

4. Click Finish.

5. Click View. It will run the report and display the data.

Page 13: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

13

Step 4. Publish the Report to the ILM Data Visualization Server 1. Go to File > Publish and Download > Publish to Server > Publish Report to Server.

Page 14: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

14

2. Provide the ILM Server details and click Connect.

3. Select the catalog that you created. Browse to the ILM directory where you want to save the catalog.

Page 15: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

15

4. Create a folder and save the catalog.

5. You can see the published report in ILM Data Visualization.

Page 16: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

16

Step 5. Download Reports from the ILM Data Visualization Server 1. Select File > Publish and Download > Download from Server.

2. Enter the ILM connection details.

Page 17: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

17

3. Browse to the folder that contains the catalog on the ILM Server. Select the catalog and report and click OK.

Page 18: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

18

Troubleshooting 1. While creating a report in JReport Designer, you might encounter the following error:

Solution: You get the error if you are not using JDK 1.7 to launch JReport Designer. Use JDK 1.7 (not JRE) to launch Designer.

2. While trying to create a report by creating a catalog, adding a table and creating a query, you receive the following error when you run the report:

Page 19: Creating Reports with JReport Designer - Informatica Library/1/0690... · 3 Step 2. Create the Catalog The reports will be created under the catalog in JReport. 1. If you are running

19

Solution: Make sure that you are using the JDBC connection and have 2-Part Name selected.

3. When you try to start the standalone JDesigner from /optional/Designer in ILM 6.2, it fails with the following error: The folder “C:\Jreport\Designer” is not REPORTHOME

This error occurs because in the setenv.bat and report.ini files, the JAVA path and JReport path are hard coded. Solution: Copy the Designer folder to the C:\ drive and then try to start Designer.

Author Shailesh Khuperkar

Senior Technical Support Engineer, GCS