Go Back   Forum - BIRT Exchange > Deploying Reports Forums > Deploying and Integrating BIRT Report Engine in Applications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2010, 04:00 PM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Default DashBIRT devshare discussion

Hi everyone,

it has been a little while since I last contributed on BIRT-exchange. The reasons behind it are quite simply a combinaison of other project commitments and my recent work on dashbirt, which I am hoping will make up for my absence.

<b>So what exactly is dashbirt?</b>

DashBIRT is a web application built upon the BIRT Chart Engine API and AJAX technology to enable charts (rendered to the browser in SVG format) to interact with one another, through the invocation of scripts.

This DashBIRT demo contains a sample jsp page (see included screenshot), which renders the following charts, built with the RCP Report Designer 2.5.1:

- top selling models (pie chart),
- sales by customer (bar chart).

Interactivity on click of each slice of the top selling models pie chart has been enabled to fire the changeProduct client-side event, providing the product name as an argument.

The sales by customer bar chart has been configured to subscribe to this event.

Feel free to download this dev share and to add your own charts, querying your own database, rather than the classic models sample database.

<b>Future of DashBIRT</b>

This is where <b>you</b> can contribute ;-)

Once you've tested dashbirt, you will probably find some limitations.

First of all, the data set evaluator used to populate the chart is quite primitive, so using expressions rather than direct column binding will most likely not work. If anyone wishes to suggest how to improve the evaluator provided or contribute a less primitive one, let me know!

Secondly, I've only tested simple pie and bar charts, and would be interested to find out if this functionality still stands the test with other chart types. Again, please let me know if you find any odd behaviours.

Thirdly, it only supports charts at the moment, but I can see how other report elements might also need to be "controlled", to allow more dynamic reports, showing multiple tables/crosstabs.

Finally, this prototype does not support event bubbling, for instance where chart c subscribes to an event generated by chart b, itself subscribed to an event from chart a. In this instance, only chart b gets refreshed, where you would logically expect chart c to also get updated. The reason why I chose not to support this feature is &quote;what parameter values would you pass from chart b?&quote; You would expect the 1st value in chart b to be selected, but this might be difficult to implement. I will be eagerly awaiting any suggestions,

Happy BIRTing,
Regards,
Cedric
Attached Images
File Type: jpg dashbirt.jpg (42.8 KB, 9 views)
Reply With Quote
  #2 (permalink)  
Old 02-08-2010, 07:36 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default

Hi,

I downloaded your example but I can't run it on Tomcat :

org.apache.jasper.JasperException: /index.jsp(19,5) Impossible de charger la classe org.cypher.dashbirt.tags.ChartTag org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
...

Do you have an idea ?

Regards

Xavier
Reply With Quote
  #3 (permalink)  
Old 02-08-2010, 07:51 AM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Wink

As I've mentioned in the readme file, within the included zip, the classes have not been compiled, so you would typically need to create a java project in eclipse, with the contents of the zip.

You will then need to add the lib and platform folders under WEB-INf, which I did not include due to attachment limitations for a devshare. However, these are listed within the readme file.

That is, you cannot simply deploy this zip directly into tomcat.

Thanks for giving this demo a spin, and looking forward to your comments once you get it up and running,
Cedric
Reply With Quote
  #4 (permalink)  
Old 02-09-2010, 01:43 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default

Hello,

my "little" problem is that I don't known how to use Eclipse, and than, do a compilation.
I just wanted to do a demostration of a dashboard using Birt for my firm (we use Birt with the RCP Designer and webservice).

Regards,

Xavier
Reply With Quote
  #5 (permalink)  
Old 02-09-2010, 02:16 AM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Wink

Hey Xavier,

that'd be great. Here's what I'll do, I'll post the pre-compiled classes in a zip file later on, along with instructions on how to deploy the app directly.

Have you set a date for the presentation yet?

Cheers,
Cedric
Reply With Quote
  #6 (permalink)  
Old 02-09-2010, 02:32 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Talking

asap !! (joke)

No date, but I you have time this week or next week for that, it would be great.
Thanks in advance.

Xavier
Reply With Quote
  #7 (permalink)  
Old 02-09-2010, 05:59 AM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Thumbs up

I'll get it done this evening, won't take long.
Reply With Quote
  #8 (permalink)  
Old 02-09-2010, 12:51 PM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Default Required library location

A few people have indicated that they had difficulties locating the required libraries, so I thought I would post this attached requiredlibs.txt, which contains the filename and location for each library.

Simply make sure those libraries are on the java build path for your java project.

Regards,
Cedric
Attached Files
File Type: txt requiredlibs.txt (3.4 KB, 3 views)
Reply With Quote
  #9 (permalink)  
Old 02-09-2010, 12:57 PM
Senior Member
 
Join Date: Apr 2008
Posts: 239
Thumbs up Compiled DashBIRT classes

Also, as previously mentioned, for those who do not have eclipse, but simply tomcat, you can delete the WEB-INF/classes folder and instead drop the attached file in WEB-INF/lib (and rename from .zip to .jar).

Please note that these classes were compiled with JDK 1.6, with no backwards compatibility. Drop me a line if you're using an earlier version of the JDK, and I'll compile with backwards compatibility for your required JDK.

Regards,
Cedric
Attached Files
File Type: zip DashBIRT-1.0-20100203.zip (353 Bytes, 6 views)
Reply With Quote
  #10 (permalink)  
Old 02-10-2010, 06:33 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default

Hi Cedric,

your 2nd zip file contains only 1 file.
Normal ?

Xavier
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 10:58 AM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0