Basic BIRT Report Development.ppt
《Basic BIRT Report Development.ppt》由会员分享,可在线阅读,更多相关《Basic BIRT Report Development.ppt(77页珍藏版)》请在麦多课文档分享上搜索。
1、Basic BIRT Report Development,John Ward, Innovent Solutions,2,2,BIRT and us Who are I? Who are you?,Who are we? John Ward, BIRT user Innovent Solutions Author: Practical Data Analysis and Reporting with BIRTWho are you? Name, Company, technical background (C, SQL, Java, reporting) Experience with BI
2、RT What are you hoping to get out of todays presentation?,3,Agenda,BIRT Overview Lesson 1 Simple Reports Lesson 2 Charting in Reports Lesson 3 BIRT Scripting Lesson 4 Report Libraries and Templates Lesson 5 Deploying with the Web Viewer,4,Objectives,Become Familiar with BIRT Designer Know how to cre
3、ate and design BIRT reports and projects Access Data in BIRT Reports Report Layout and Formatting Using Styles Sort, Group Data Use Report Parameters Create and Format Charts Write Expressions Using Scripting Creating and Using Libraries and Templates Deploy BIRT Reports,5,5,Easy Hard,Presentation F
4、ocus,BIRT Tasks Audience,BIRT Report DevelopersAdvanced BIRT DevelopersDeploy ExpertsReporting Integration BIRT ExtensionBIRT Core Development,Drag & Drop, Charting, PropertiesBIRT ScriptingBIRT ViewerDesign Engine APIBIRT Extension PointsEclipse Development,6,BIRT Target Users & Benefits,Embed pre-
5、designed reports in application Designs reports using Eclipse-based designer Creates report libraries & templates,Powerful and easy to use report designer Creates & uses report libraries & templates,Focused on $, developer productivity End user satisfaction,Quick availability of reports Reports that
6、 also look good Content as HTML and PDF,Reports that support business activities Ever changing business requirements,Minimizes Eclipse developer training Increase developer productivity Lower costs,Saves calories vs. JSP/Java Minutes vs. days for HTML, vs. weeks for PDF Minutes to modify as user req
7、uirements change Iterative development gets the right reports quicker,Managers,End Users,Report Developers,Java Developers,Flexible, web page design metaphor Ability to leverage complex components,7,Report Designer,High Level BIRT Architecture,Report Engine,Presentation Services,Report Design Engine
8、,XML Report Design,Report Document,HTML PDF Print,Eclipse Report Designer,Generation Services,Data Transform. Services,Charting Engine,Data,Data,Chart Designer,Eclipse DTP ODA,Custom Designer,Reporting,Objectives: Become Familiar with BIRT Workbench To create a BIRT Reporting Project To create a BIR
9、T Report Introduce the BIRT Workbench Create a simple Product Profitability & Inventory Report End User Customizing via Report Parameters,9,9,The Quick Tour,The BIRT Perspective Data View, Palette, Outline View, Layout, Code, Preview BIRT Data Data Sources, Data Sets, Parameters BIRT Layout Grids, T
10、ables, Controls, Data Binding BIRT Code Expression Builders vs. Code Pages BIRT Preview HTML View, BIRT Viewer, PDF Viewer,10,Birt Designer,Graphical report designer, similar to web development applications such as Dreamweaver or NvuProvides visual environment to quickly “draw” reportsProvides mecha
11、nisms to quickly create data connectionsProvides Project Management,11,Workbench,Navigator,Navigates through Eclipse projects and files under those projects Allows user to run report inside of BIRT,Outline,Provides hierarchy of current report Allows for easy navigation of report elements to change p
12、roperties in the property pane When selecting libraries, use the outline to copy non-visual components such as data sources and sets,Palette,Contains a number of visual elements used in BIRT report designs Similar to Toolboxes in MS Visual Studio and other visual IDE,Data Explorer,Contains. Data Sou
13、rces: Connections to database. Data Sets: Same as a Recordset. Allows users to navigate through Query Results. Report Parameters: Used as the interface for report parameters that will be passed to a Data Set.,Report Designer,Area where report layout is designed, previews of the report are seen, scri
14、pts and events are coded, and XML source for report can be viewed.,Areas of the BIRT Workspace (Cont.),Properties Pane. Properties for BIRT objects can be modified, such as Data Set Binding, Font information, formatting for Data Set returns such as Row Highlighting and Color Alternation.,18,Top Leve
15、l Report Layout,Master Pages Contains elements visible on every page, such as page headersGrids Used to position elements on page Contains no Data BindingsTables Grids with Data Binding Has Header, Detail, and Footer bandsLists Single Column Tables,19,Demo Static Report,Background: Our Manager, Mr E
16、rnie, wants a generic letterhead.Build a letter head for Classic Cars using containers to format the layout.Objectives: Familiarize you with the concept of containers for Report Elements,Setting up a Project,BIRT uses the eclipse paradigm of using projects File/new/project From the project wizard, s
17、elect report project from under BIRT Set project name Projects are shown in the eclipse navigator,Setting up a Report,With eclipse project open From file menu File/new/report From navigator Right-mouse click on report project, new/report Select project to associate report with and give file name,22,
18、Containers,23,Data Access,Data Sources Handled data connectionsData Sets Defined Data to be used in ReportParameters Used for User Interaction to Filter Data Cascading ParametersParameter Binding,Setting up JDBC,Setup is done via the Data Explorer when setting up a new data source. Click on the “man
19、age drivers” button. Point to JDBC ZIP/JAR file. In order to set up connection, you must know the JDBC URL. Can set a template of the JDBC URL format for future use of driver. This makes it easier for future connections. Datasources can be added to libraries for report projects that use consistent d
20、atasources.,Creating a Data Set,With data source(s) created, right-click on data set and chose new. Type in SQL query. Can create Joined Data Sets to combine 2 or more data sources. Here I am using a questionmark, which will bind a report parameter to a query. Datasets can be added to libraries. htt
21、p:/ Parameters,Used to create dynamic result sets from queries Binds user input to filter results sets Parameters get assigned in sequential order, first parameter gets assigned to first bind variable in query Report Parameters get stored as global variables in reports, accessible in scripts and exp
22、ressions in addition to data.,27,Tables,Slots Header Detail Footer Data Binding Makes table/list aware of values in Data Set Grouping Group on value in Data Set Sorting Sort on value in Data Set,28,Styles,Built InCSSThemes,29,Aggregates,Aggregate operations Sum Avg Count Done at the binding level,30
23、,Viewing Reports,PreviewWeb ViewerEmitters,Report Run,Can Run from Navigator or from File Menu Reports that get run open in separate browser window. Results can be saved. Option to view as HTML, Word, Excel, PDF,32,Demo Building Reports - Product Profitability Report,Scenario: You work for the Class
24、ic Cars company. Your boss, Mr Ernie, wants a report that is a simple listing of all product sales in the database, with the total costs and total profits for each product arranged by State and City, sorted in order of decreasing amounts of total profits. Provide a report parameter to limit the list
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BASICBIRTREPORTDEVELOPMENTPPT
