-
BIRT Cassandra and Hector
These examples are written in BIRT 3.7.2.<br /> <br /> See the following post for details.<br /> <br /> http://birtworld.blogspot.com/2012/09/birt-cassandra-and-hector.html
-
Data Engine API to check Data Set values
Example that uses the Data Engine API in beforeFactory Script to get values for a dataset. The example has two tables and two datasets. In the beforeFactory the second table's data set is executed to see if it has any values. If it does the first table is dropped from the report. Note that the table must be named in the…
-
Joint Data Set to pad out dates
This is based on Michaels example:<br /> <br /> http://www.birt-exchange.org/org/devshare/designing-birt-reports/1190-birt-calendar-view-report/
-
Derived Cube and Crosstab Measures
These examples are for BIRT 4.2. One shows a derived measure on a cube and the other shows a derived measure on a crosstab. Derived measures have been in since BIRT 2.3 for a crosstab. BIRT 4.2 allowed them to be placed on cubes.<br /> <br /> http://www.eclipse.org/birt/phoenix/project/notable4.2.php#jump_8
-
DE API - Create a Nested Table
See attached code. Note the comments about starting and stopping the platform. This code creates a report with two tables. The outer table list orders and the inner table uses a data set parameter that is set to the value of the outer table's ordernumber to list details for a specific ordernumber.
-
Use Column Names as Chart X-Axis
This example uses a hidden table with script to load up values into an array. These values are used in the chart script to replace values that were used in designing the report. Essentially just replacing the chart values with ones calculated from the hidden table.
-
BIRT Charting API Report and API Examples EclipseCon2008
Enclosed is the powerpoint presentation and examples that were presented at EclipseCon 2008.
-
All Parameter Values
This example report has two datasets. One is tied to a report parameter. This report parameter has a default value of All Customers. The second dataset is displayed in the report. In its beforeOpen the query is modified based on the parameter selected.
-
Master Detail Based on Parameter
See the beforeFactory script to see how the DE API is used in script to add the hyperlink drill through based on the report parameter.
-
Swap Data Set based on the Designer
This is done with code used in the beforeFactory script:des = reportContext.getHttpServletRequest().getParameter("__designer");if( des == null || des == "false" ){mytable = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("mytable");mytable.setProperty( "dataSet", "viewer" );} <br /> Remember to…
-
Change Meter Scale with Script
This example shows modifying the scale for a meter chart using script on the chart.functionbeforeGeneration(chart, icsc) {importPackage( Packages.org.eclipse.birt.chart.model.impl );importPackage( Packages.org.eclipse.birt.chart.model.type.impl );importPackage( Packages.org.eclipse.birt.chart.model.attribute…
-
Modifying a Chart in a report using client side script
This report uses Text elements to show check boxes and a refresh button. When the report is executed, the specific chart series selected are rendered. The Checkboxes that are not selected are removed from the chart model in the beforeGeneration event.
-
Modifying a Chart in a report using client side script using the DOM
This report uses Text elements to show check boxes and a refresh button. When the report is executed, two charts are rendered. Un checking the boxes and clicking the refresh button will set the display property to none. If the box is checked the the chart display property will be set to block. This example uses the DOM, so…
-
Call Chart Engine in RCP Application
This example takes the SWTLiveViewer chart example and includes it in a simple RCP application.
-
DEAPI examples from BIRT-Exchange Webinar
See Readme
-
BIRT 2.3 Webinar Examples
This download contains two projects. One project contains the report examples demonstrated in the BIRT 2.3 webinar, which you can view <br /> <br /> here.<br /> <br /> The second project contains some example chart event handlers, one of which is demonstrated in the webinar.
-
ODA Primer Articles
Three part series of articles describing a basic ODA for use within BIRT. Written by Scott Rosenbaum and Jason Weathersby
-
JBoss BIRT Portlet
This example demonstrates creating an instance of a custom IPlatformContext to get the BIRT Report Engine to work in JBoss's Portal Server.
-
BIRT Web Service ODA Article
Article describing BIRT Web Service ODA
-
BIRT Filename Generator
Make sure to add BIRT_FILENAME_GENERATOR_CLASS context-param with a value of my.filename.generator.MyFilenameGenerator to your webviewer's web.xml<br /> <br /> NOTE: In addition to this download, more details and screenshots are available at: http://birtworld.blogspot.com/2008/09/naming-exported-files-from-birt.html
-
Add onmouseover event to a report design
This example adds a script tag in a text element to handle mouse over and mouse out events. The first column uses a text element to display order number and adds the mouse events. In addition the text element's bookmark property is used by the functions in the first text element.
-
ScriptFunctions Extension Example
This example illustrates adding a script function to the BIRT expression Builder. It requires BIRT 2.3.1 to be used. To read more see:<br /> <br /> http://birtworld.blogspot.com/2008/09/birt-231-adding-functions-to-expression.html
-
Chart Script example accessing runtime series
This example contains a combinational chart using a line and bar series. Script has been added to the chart to modify the riser type for the bar series.
-
Simple Report Script that modifies page break interval
This example uses a named table and and a page break interval parameter to set the interval dynamically in the before factory event.mytable = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("mytable").setProperty("pageBreakInterval",params["PageBreakInterval"].value);
-
Dynamically add a series to a chart
This example implements a beforeFactory event handler that modifies a chart to add additional series to the chart based on a static report parameter that allows multi selection.<br /> <br /> More information on this example is located at<br /> <br />…
-
Chart Script example of modifying series entries in the legend
This example uses a scripted dataset to get the names of each series for the legend. A hidden table is placed on the report that calls the dataset. The oncreate for the row sets persistent global variables with the names of the series. var st1 = this.getRowData().getColumnValue("series1");var st2 =…
-
Reverse Bar Chart Scale
See the following link for more details.<br /> <br /> http://birtworld.blogspot.com/2008/12/birt-reversing-chart-scale.html
-
Swap the order tables are displayed in
This report contains code in the beforeFactory event to swap the order of two tables based on a report parameter.
-
BIRT Interactivity
This article was written for BIRT 2.0 but many of the points in the article are still applicable. The article discusses building interactivity into BIRT reports and charts.
-
Set a Date Parameter Value to last day of the month
This example ties a date parameter to a scripted datasource that sets the value of the parameter to the last day of the month.