Integrating and extending BIRT
eBook, English, 2011, c2012
Addison-Wesley, Upper Saddle River, NJ, 2011, c2012
Online-Ressource (1 online resource xxx, 847 p.)
9780321772824, 9780132732543, 0321772822, 0132732548
1047811683
Foreword xix Preface xxiAcknowledgments xxix Part 1: Installing and Deploying BIRT 1Chapter 1: Introducing BIRT Report Designers 3Understanding BIRT components 3Understanding Eclipse BIRT packages 4About types of BIRT builds 5 Chapter 2: Installing a BIRT Report Designer 7Installing BIRT Report Designer Full Eclipse Install 7Installing BIRT RCP Report Designer 8Troubleshooting installation problems 9Installing a language pack 10Updating a BIRT Report Designer installation 11Updating BIRT RCP Report Designer installation 12 Chapter 3: Installing Other BIRT Packages 15Installing Chart Engine 15Installing BIRT Data Tools Platform Integration 17Installing BIRT Demo Database 17Installing Report Engine 19Installing BIRT Samples 21Installing BIRT Source Code 21Installing BIRT Web Tools Integration 22 Chapter 4: Deploying a BIRT Report to an Application Server 25About application servers 25Placing the BIRT report viewer on an application server 26Placing fonts on the application server 31Viewing a report using a browser 31Using connection pooling on Tomcat 32 Part 2: Understanding the BIRT Framework 37Chapter 5: Understanding the BIRT Architecture 39Understanding the BIRT integration 39About the BIRT applications 43About the types of BIRT report items 46About the Report Object Model (ROM) 47About the types of BIRT files 47About custom Java applications 49About extensions to BIRT 50 Chapter 6: Understanding the Report Object Model 51About the ROM specification 51About the ROM schema 53About the rom.def file 53Understanding ROM elements 58 Part 3: Scripting in a Report Design 61Chapter 7: Using Scripting in a Report Design 63Overview of BIRT scripting 63Events overview 64Event order sequence 71 Chapter 8: Using JavaScript to Write an Event Handler 83Using BIRT Report Designer to enter a JavaScript event handler 83Using the reportContext object 86Using the this object 93Using the row object 96Getting column information 97Getting and altering the query string 98Changing data source connection properties 99Getting a parameter value 100Determining script execution sequence 101Tutorial 1: Writing an event handler in JavaScript 103JavaScript event handler examples 107Calling external JavaScript functions 111Calling Java from JavaScript 112Calling the method of a class in a plug-in 114 Chapter 9: Using Java to Write an Event Handler 117Writing a Java event handler class 117Writing a Java event handler 123Understanding the BIRT interfaces 128Java event handler example 135Debugging a Java event handler 142 Chapter 10: Working with Chart Event Handlers 143Chart events overview 143Understanding the Chart script context 145Understanding when chart events fire 150Writing a Java chart event handler 164Writing a JavaScript chart event handler 167Using the simplified charting API 169 Chapter 11: Using Scripting to Access Data 173Using a Scripted Data Source 173Tutorial 2: Creating a scripted data source 175Creating a web services data source using a custom connection class 184 Chapter 12: Debugging Event Handlers 187Checking the syntax of JavaScript expressions 188Debugging JavaScript event handlers code 190Debugging Java event handler code 194Debugging report execution exceptions 194Creating a debug configuration 196Tutorial 3: Debugging a report that contains Java and JavaScript code 198 Part 4: Integrating BIRT into Applications 215Chapter 13: Understanding the BIRT APIs 217Package hierarchy diagrams 218About the BIRT Report Engine API 219About the Design Engine API 226About the BIRT Chart Engine API 239 Chapter 14: Programming Using the BIRT Reporting APIs 257Building a reporting application 258Generating reports from an application 262Programming the structure of a report design 289 Chapter 15: Programming Using the BIRT Charting API 307About the chart engine contents 307About the environment for a charting application 308About the charting API and the chart structure 310Using the charting API to create a new chart 312Modifying chart properties 312Using a chart item in a report design 321Using the BIRT charting API in a Java Swing application 334Understanding the chart programming examples 340 Part 5: Working with the Extension Framework 347Chapter 16: Building the BIRT Project 349About building the BIRT project 349Installing a working version of BIRT 350Configuring Eclipse to compile BIRT and build the viewer JAR files 350Downloading and extracting the correct version of the BIRT source code 353Importing, building, and testing the BIRT project 354Building new JAR files to display BIRT output 356 Chapter 17: Extending BIRT 359Overview of the extension framework 359Understanding the structure of a BIRT plug-in 359Working with the Eclipse PDE 366Creating the structure of a plug-in extension 370Creating the plug-in extension content 373Building a plug-in extension 377Deploying the extension plug-in 381Downloading the code for the extension examples 384 Chapter 18: Developing a Report Item Extension 387Understanding a report item extension 387Developing the sample report item extension 389Understanding the rotated label report item extension 404Deploying and testing the rotated label report item plug-in 412Developing an advanced report item 416 Chapter 19: Developing a Report Rendering Extension 465Understanding a report rendering extension 465Developing a CSV report rendering extension 466Developing an XML report rendering extension 494 Chapter 20: Developing an ODA Extension 509Understanding an ODA extension 510Developing the CSV ODA driver extensions 511Implementing the CSV ODA driver plug-in 513Understanding the sample CSV ODA driver extension 522Developing the CSV ODA user interface extension 530Understanding the sample CSV ODA user interface extension 537Testing the CSV ODA user interface plug-in 548Developing a Hibernate ODA extension 554 Chapter 21: Developing a Data Extraction Extension 601Understanding a data extraction extension 601Developing an XML data extraction extension 602 Chapter 22: Developing a Fragment 635Understanding a fragment 635Developing the sample fragment 636Creating a fragment project 637Understanding the sample fragment 640Building, deploying, and testing a fragment 641 Chapter 23: Developing a Charting Extension 647About BIRT charting extension points 648Setting up the build environment 650Extending the chart model 652 Glossary 707Index 779
Includes index