
By Jason Weathersby | Article Rating: |
|
November 25, 2009 01:45 PM EST | Reads: |
13,681 |

Java Developer Magazine on Ulitzer
Recently I have described methods that can be used to access Spring Beans from the BIRT Engine. These examples are intended to be illustrative and not comprehensive.
In both of these examples I used the BIRT engine to retrieve Spring objects within the scripting environment. In this post I am supplying an example that illustrates how to implement your own menu in the expression builder, so Spring objects can be called within the BIRT Designer. This will allow you to test your report prior to deployment.
In this post:
BIRT 2.3.1 - Adding Functions to the Expression Builder
I described how to implement the org.eclipse.birt.core.ScriptFunctionService. The attached example is an implementation of this extension point. When using this example the expression builder will appear as follows.
Notice that there is now a SpringFunctions sub-category, which provides one method callBean. This method takes a bean name and a method name and expects a returned string. To keep the example simple no arguments are supported and the method must return a string. The plugin.xml looks like the following:
Provided with the example is a deployable J2EE application and the plugin that implements the ScriptFunctionService. See the readme for details on setting up the example. Also note that the deployable plugin is also attached in the example. You will need to add this to your designer and your runtime. This example works with both the Open Source BIRT designer and the Actuate BIRT designer.
Also included is an example report with the following output.This example is available at Birt-Exchange.
Read the original blog entry...
Published November 25, 2009 Reads 13,681
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Jason Weathersby
Jason Weathersby is a member of the extended BIRT development team at Actuate Corporation and has backgrounds in both computer science and technical writing. He has many years experience in technical consulting, training, writing, and publishing about reporting, business intelligence tools, and database technologies.
![]() Apr. 23, 2018 08:00 AM EDT Reads: 2,124 |
By Pat Romanski ![]() Apr. 23, 2018 06:30 AM EDT Reads: 6,596 |
By Pat Romanski Apr. 23, 2018 06:00 AM EDT Reads: 1,787 |
By Pat Romanski ![]() Apr. 23, 2018 03:15 AM EDT Reads: 4,457 |
By Yeshim Deniz ![]() Apr. 23, 2018 01:00 AM EDT Reads: 1,983 |
By Liz McMillan Apr. 23, 2018 12:30 AM EDT Reads: 2,686 |
By Liz McMillan ![]() Apr. 23, 2018 12:00 AM EDT Reads: 5,574 |
By Pat Romanski Apr. 22, 2018 11:30 PM EDT Reads: 2,768 |
By Yeshim Deniz Apr. 22, 2018 11:00 PM EDT Reads: 2,481 |
By Liz McMillan ![]() Apr. 22, 2018 10:00 PM EDT Reads: 22,612 |
By Liz McMillan ![]() Apr. 22, 2018 07:45 PM EDT Reads: 13,678 |
By Liz McMillan ![]() Apr. 22, 2018 07:00 PM EDT Reads: 5,137 |
By Liz McMillan ![]() Apr. 22, 2018 06:30 PM EDT Reads: 13,449 |
By Pat Romanski ![]() Apr. 22, 2018 04:00 PM EDT Reads: 6,969 |
By Elizabeth White ![]() Apr. 22, 2018 03:00 PM EDT Reads: 13,240 |
By Pat Romanski Apr. 22, 2018 02:45 PM EDT Reads: 2,386 |
By Pat Romanski Apr. 22, 2018 02:30 PM EDT Reads: 1,416 |
By Liz McMillan Apr. 22, 2018 02:00 PM EDT Reads: 1,733 |
By Yeshim Deniz ![]() Apr. 22, 2018 12:45 PM EDT Reads: 2,029 |
By Elizabeth White Apr. 22, 2018 12:15 PM EDT Reads: 1,791 |