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

Post on 21-May-2020

6 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

© 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

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.

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.

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.

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.

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.

7

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

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

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.

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.

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.

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.

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.

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.

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.

15

4. Create a folder and save the catalog.

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

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.

17

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

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:

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

top related