IBM TRIRIGA Application Platform Version 3.3.2. Reporting: Creating Cross-Tab Reports in BIRT



Similar documents
Reading multi-temperature data with Cúram SPMP Analytics

IBM Cognos Controller Version New Features Guide

IBM Security QRadar Version (MR1) Checking the Integrity of Event and Flow Logs Technical Note

Platform LSF Version 9 Release 1.2. Migrating on Windows SC

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

IBM SmartCloud Analytics - Log Analysis. Anomaly App. Version 1.2

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

Tivoli Endpoint Manager for Security and Compliance Analytics. Setup Guide

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Tivoli Endpoint Manager for Security and Compliance Analytics

IBM Security SiteProtector System Migration Utility Guide

IBM Enterprise Marketing Management. Domain Name Options for

IBM TRIRIGA Version 10 Release 4.2. Inventory Management User Guide IBM

Patch Management for Red Hat Enterprise Linux. User s Guide

Table 1 shows the LDAP server configuration required for configuring the federated repositories in the Tivoli Integrated Portal server.

Cúram Business Intelligence and Analytics Guide

IBM Enterprise Marketing Management. Domain Name Options for

Version 8.2. Tivoli Endpoint Manager for Asset Discovery User's Guide

IBM Security QRadar Version (MR1) Replacing the SSL Certificate Technical Note

Tivoli Endpoint Manager for Configuration Management. User s Guide

Installing on Windows

IBM Configuring Rational Insight and later for Rational Asset Manager

IBM Endpoint Manager Version 9.2. Software Use Analysis Upgrading Guide

IBM Client Security Solutions. Password Manager Version 1.4 User s Guide

IBM Cognos Controller Version New Features Guide

Getting Started With IBM Cúram Universal Access Entry Edition

SmartCloud Monitoring - Capacity Planning ROI Case Study

IBM Rational Rhapsody NoMagic Magicdraw: Integration Page 1/9. MagicDraw UML - IBM Rational Rhapsody. Integration

Tivoli Security Compliance Manager. Version 5.1 April, Collector and Message Reference Addendum

IBM Endpoint Manager for OS Deployment Windows Server OS provisioning using a Server Automation Plan

Release Notes. IBM Tivoli Identity Manager Oracle Database Adapter. Version First Edition (December 7, 2007)

Linux. Managing security compliance

Big Data Analytics with IBM Cognos BI Dynamic Query IBM Redbooks Solution Guide

IBM SmartCloud Analytics - Log Analysis Version User's Guide

Omnibus Dashboard Best Practice Guide and Worked Examples V1.1

OS Deployment V2.0. User s Guide

IBM Lotus Protector for Mail Encryption. User's Guide

IBM Security QRadar Version (MR1) Configuring Custom Notifications Technical Note

Tivoli IBM Tivoli Monitoring for Transaction Performance

Disaster Recovery Procedures for Microsoft SQL 2000 and 2005 using N series

Sterling Business Intelligence. Concepts Guide

Software Usage Analysis Version 1.3

Remote Support Proxy Installation and User's Guide

IBM FlashSystem. SNMP Guide

Communications Server for Linux

IBM Tivoli Service Request Manager 7.1

Active Directory Synchronization with Lotus ADSync

IBM Endpoint Manager. Security and Compliance Analytics Setup Guide

WebSphere Business Modeler Advanced. Defining metrics and KPIs to monitor your business

IBM Cognos Business Intelligence Version Dynamic Query Guide

Sterling Supplier Portal. Overview Guide. DocumentationDate:9June2013

IBM WebSphere Message Broker - Integrating Tivoli Federated Identity Manager

IBM Security QRadar Version Common Ports Guide

Tip and Technique on creating adhoc reports in IBM Cognos Controller

IBM Lotus Protector for Mail Encryption

QLogic 4Gb Fibre Channel Expansion Card (CIOv) for IBM BladeCenter IBM BladeCenter at-a-glance guide

DataPower z/os crypto integration

IBM DB2 Data Archive Expert for z/os:

IBM Enterprise Content Management Software Requirements

IBM Security QRadar Version (MR1) Installing QRadar 7.1 Using a Bootable USB Flash-Drive Technical Note

Rapid Data Backup and Restore Using NFS on IBM ProtecTIER TS7620 Deduplication Appliance Express IBM Redbooks Solution Guide

Rational Reporting. Module 3: IBM Rational Insight and IBM Cognos Data Manager

IBM Financial Transaction Manager for ACH Services IBM Redbooks Solution Guide

CS z/os Application Enhancements: Introduction to Advanced Encryption Standards (AES)

IBM Tivoli Web Response Monitor

IBM Lotus Protector for Mail Encryption

Packet Capture Users Guide

Rational Build Forge. AutoExpurge System. Version7.1.2andlater

Implementing the End User Experience Monitoring Solution

IBM Endpoint Manager for Software Use Analysis Version 9 Release 0. Customizing the software catalog

Integrating ERP and CRM Applications with IBM WebSphere Cast Iron IBM Redbooks Solution Guide

z/os V1R11 Communications Server system management and monitoring

Power Management. User s Guide. User s Guide

IBM Proventia Management SiteProtector. Configuring Firewalls for SiteProtector Traffic Version 2.0, Service Pack 8.1

IBM PowerSC Technical Overview IBM Redbooks Solution Guide

QLogic 8Gb FC Single-port and Dual-port HBAs for IBM System x IBM System x at-a-glance guide

IBM Security SiteProtector System Two-Factor Authentication API Guide

InfoPrint 4247 Serial Matrix Printers. Remote Printer Management Utility For InfoPrint Serial Matrix Printers

Rational Developer for IBM i (RDI) Distance Learning hands-on Labs IBM Rational Developer for i. Maintain an ILE RPG application using

IBM VisualAge for Java,Version3.5. Remote Access to Tool API

IBM Security SiteProtector System Configuring Firewalls for SiteProtector Traffic

IBM Tivoli Software. Version 7.5 Report Planning Guide Document Version 4

IBM Cloud Orchestrator Content Pack for OpenLDAP and Microsoft Active Directory Version 2.0. Content Pack for OpenLDAP and Microsoft Active Directory

IBM Lotus Enterprise Integrator (LEI) for Domino. Version August 17, 2010

IBM Connections Plug-In for Microsoft Outlook Installation Help

IBM FileNet System Monitor FSM Event Integration Whitepaper SC

IBM Client Security Solutions. Client Security User's Guide

IBM XIV Management Tools Version 4.7. Release Notes IBM

IBM RDX USB 3.0 Disk Backup Solution IBM Redbooks Product Guide

Rational Reporting. Module 2: IBM Rational Insight Data Warehouse

Redbooks Paper. Local versus Remote Database Access: A Performance Test. Victor Chao Leticia Cruz Nin Lei

Installing and using the webscurity webapp.secure client

IBM Endpoint Manager Version 9.0. Patch Management for Red Hat Enterprise Linux User's Guide

IBM Digital Analytics Enterprise Dashboard User's Guide

WebSphere Application Server V6: Diagnostic Data. It includes information about the following: JVM logs (SystemOut and SystemErr)

IBM. Job Scheduler for OS/400. AS/400e series. Version 4 SC

Continuous access to Read on Standby databases using Virtual IP addresses

WebSphere Business Compass Version 7. Getting started with process maps

IBM WebSphere Adapter for PeopleSoft Enterprise Quick Start Tutorials

Transcription:

IBM TRIRIGA Application Platform Version 3.3.2 Reporting: Creating Cross-Tab Reports in BIRT Cheng Yang Application Developer IBM TRIRIGA Copyright International Business Machines Corporation 2013. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

ii

CONTENTS List of Figures... iv Revision History... v 1 Introduction... 6 2 Prerequisites... 7 3 Creating a cross-tab BIRT report... 7 4 Product documentation... 15 iii

LIST OF FIGURES Figure 1: Sales Reporting Details... 6 Figure 2: Sample Sales Report... 6 Figure 3: Export the starter report... 7 Figure 4: Import the starter report... 7 Figure 5: Open the rptdesign file... 8 Figure 6: Double-click the data set... 8 Figure 7: Change the field type... 8 Figure 8: Choose New Data Cube... 9 Figure 9: Drag and drop under Groups (Dimensions)... 9 Figure 10: Group the date by year... 10 Figure 11: Drag and drop under Summary Fields (Measures)... 10 Figure 12: Select the function to be SUM... 11 Figure 13: Expand the Data Cube... 11 Figure 14: Drag and drop a cross -tab element... 12 Figure 15: Select Preview... 12 Figure 16: View the report... 13 Figure 17: Set the columns and data set... 13 Figure 18: Put the cross tab into the footer... 13 Figure 19: Delete the summarized field... 14 Figure 20: Drag and drop a Dynamic Text field... 14 Figure 21: View the report again... 15 iv

REVISION HISTORY Date Version Comments 05 Dec 2013 1.0 Initial version. v

1 Introduction This document provides instructions for creating a simple IBM TRIRIGA cross-tabulation (or cross-tab) report in Business Intelligence and Reporting Tools (BIRT). It also includes tips and an example that may be helpful for the report designer to create this type of report. For example, if you need a TRIRIGA report to show the sales total by year for each sales category using the data (see Sales Reporting Details below) it will look something like the Sample Sales Report (see further below). In TRIRIGA, this type of data can be presented nicely by a cross-tab report in BIRT. Figure 1: Sales Reporting Details Figure 2: Sample Sales Report 6

2 Prerequisites This document assumes that the reader has a basic understanding of the IBM TRIRIGA Application Platform and the fundamental concept that is required to operate the webbased IBM TRIRIGA system. The Eclipse - BIRT Report Designer must be installed. 3 Creating a cross-tab BIRT report Step 1: Export the starter report from the IBM TRIRIGA query in Report Manager. Figure 3: Export the starter report Step 2: In Eclipse - BIRT Report Designer, create a new Report Project and import the starter report into the project folder. Figure 4: Import the starter report 7

Step 3: Expand the Project Folder and then open the rptdesign file. Figure 5: Open the rptdesign file Step 4: Double-click the data set in Data Explorer. Figure 6: Double-click the data set Step 5: Select Output Columns, change the field type from Java Object to an appropriate type for each field. For example, change the data type to be Date for the "Date" defined field. However, keep the "Sales Total" field as Java Object. The reason is given later. Figure 7: Change the field type 8

Notes: All starter reports have all of the output columns that are modeled as Java Objects. Using Java Objects as the data types for IBM TRIRIGA data provides you with increased flexibility in development reports. However, unlike the regular table, which you can display the Java Objects columns on the report directly, the cross-tab report needs to have the data with correct data type before they can be used for Groups or Summaries in the data cube. Otherwise, the data cube cannot be created correctly, and it may show exceptions or errors when you run the cross-tab report. Step 6: In Data Explorer, right-click on Data Cubes, and then choose New Data Cube. Figure 8: Choose New Data Cube Step 7: Drag "Sales Category" field from Available Fields and drop it under the Groups (Dimensions). Figure 9: Drag and drop under Groups (Dimensions) 9

Step 8: Drag "Sales Date" field from Available Fields and drop it under the Groups (Dimensions). Different from "Sales Category", "Sales Date" is a Date type field, which you can group the dates by any of the time periods. In this example, group the date by year. Figure 10: Group the date by year Step 9: Drag the "Sales Total" field from Available Fields and drop it under the Summary Fields (Measures). Double-click the field, and select the function to be SUM. Figure 11: Drag and drop under Summary Fields (Measures) 10

Figure 12: Select the function to be SUM Notes: As mentioned earlier in step 5, you changed the field type from Java Object to an appropriate type for each field. However, the "Sales Total" is left as Java Object. The reason is that you must use this field as source to get the IBM TRIRIGA user-preferred format after you aggregate the numbers inside of BIRT. Before the field can be used for calculation, you must access its native SQL value by using the object's getnativevalue() method. For example: datasetrow["triitem trirepercentrentitem trisalestotalnu"].getnativevalue() Step 10: Expand the Data Cube to verify its contents. Figure 13: Expand the Data Cube 11

Step 11: Select Palette, drag a cross-tab element from the palette, and drop it to the report. Insert the data from the data cube into the cross tab. In this example, place the "Sales Category" into rows area, "Sales Year" into columns area and "Sales Total" into summarized area. Figure 14: Drag and drop a cross-tab element Step 12: Select Preview to view the report. Figure 15: Select Preview 12

Figure 16: View the report Notes: You may notice that some of the cells are blank and the numbers do not display in the appropriate format. If you would like to show zero for the null value, and also format those numbers in the IBM TRIRIGA user-preferred format, continue with the following steps. Step 13: Select the palette, drag a table element from the palette, and drop it to the report. Set the Number of columns to 1, and then select the data set. Figure 17: Set the columns and data set Step 14: Remove the header row and detail row from the table. Put the cross tab into the footer of that table. Figure 18: Put the cross tab into the footer 13

Step 15: Delete the summarized field, drag a Dynamic Text field from the palette, and drop it to the summarized area. Write the following code in the express builder to format the number in IBM TRIRIGA user-preferred format. Figure 19: Delete the summarized field Figure 20: Drag and drop a Dynamic Text field For example: TRIRIGA.formatNumber( data["triitem trirepercentrentitem trisalestotalnu_salescategory/triitem trirepercentrentitem trisalescategorycl_salesyear/year"], row._outer["triitem trirepercentrentitem trisalestotalnu"].getuom() ) Notes: The field that used for getuom() is from the outer table. 14

Step 16: Select Preview to view the report again. Now the report shows the number in the same format as you defined in IBM TRIRIGA. Figure 21: View the report again 4 Product documentation Review the IBM TRIRIGA 10.3.2 and IBM TRIRIGA Application Platform 3.3.2 information centers for more information about IBM TRIRIGA products. Depending on the topic, this paper might or might not supersede the standard documentation. In most cases, this paper overrides related information but only for the product version to which this paper applies. Review the latest Release Notes for your installed IBM TRIRIGA product version, as they might contain specific information that overrides topics in this paper. 15

Copyright IBM Corporation 2013 IBM United States of America Produced in the United States of America US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-ibm product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PAPER AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes may be made periodically to the information herein; these changes may be incorporated in subsequent versions of the paper. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this paper at any time without notice. Any references in this document to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation 4205 South Miami Boulevard Research Triangle Park, NC 27709 U.S.A. 16

All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information is for planning purposes only. The information herein is subject to change before the products described become available. If you are viewing this information softcopy, the photographs and color illustrations may not appear. Trademarks IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. Other product and service names might be trademarks of IBM or other companies. 17