How can I generate reports containing charts with Pentaho and Java? - java

We have a Java EE based web application and we want to integrate Pentaho reporting API into this application.
So, I'm trying to learn how Pentaho can automatically generate reports containing charts. I have downloaded Pentaho BI server and played with it for a few days. But I'm still clueless about the following issues:
How to generate reports dynamically at runtime without loading those *.prpt files.
Where I can get a simple tutorial about dynamic report generation
What the difference is between Community Dashboard Framework, charting tools and reporting tools.
The documentation on the Community Dashboard Framework site is not properly organized, and there is not a single tutorial about getting started.
If anyone can help me find the answers to some of my questions, it will be great!

You can define reports purely via the API of the reporting engine. Samrat is right on that the preferred way of defining reports is the report designer - as code changes are harder to maintain than changes of a GUI-editable external report definition.
I think the best way to go forward is to grab Will Gorman's book about "Pentaho Reporting 3.5 for Java Developers" which gives you a deep insight into the inner workings of the reporting engine and also how to define reports dynamically.
CDF vs Reporting: CDF is a javascript toolkit for creating interactive dashboards. Dashboards are aimed to provide a high-level overview over the state of your company with the ability to drill down or even customize them. Reports produced by the reporting engine are predefined/"canned" reports that we expect to be run frequently to answer specific business questions. Charts components are just components that produce a given chart for dashboards based on a set of input parameters.
CDF uses reports and charts as content in dashboards.

Without prpt files there is no pentaho reporting. To achieve dynamically, run the pentaho BI server and pass the parameters to the report. Load the report in iframe.

Related

what is the best method to create report using java

I will be creating a sales report using java my source is db2 database i was wondering what is the best method to create(fastest,efficient)?
it will be a comma seperated
JasperReports is a cool tool to create different kind of reports in different formats. It can also be integrated into NetBeans and Eclipse. So just design the report, test it and if you are fine, use the java-libraries coming with Jasper to run your report in Java. The library also has the possibility to hand over parameters.

Integration between alfresco and java application

I have a Java Application and I need to get a Jasper report located in Alfresco. Once I have the report I need to add some parameters and then compile it and generate a PDF.
I know this is possible, using alfresco API and Jasper Report API. I have searched in Java-backed Web Scripts Samples but I don't understand the examples, because i'm new in Alfresco and Java, so any clue would be appreciated.
You might be interested in Benjamin Rodriguez' Jasper Reports Dashlet which he submitted as part of last year's Dashlet Challenge. The dashlet makes it possible to configure and run Jasper reports from within the Share UI. This isn't exactly what you are trying to do but it may be a good source of example code.

Spring Roo for a rich reporting app

I'm thinking of using Spring Roo for a reporting app. This is a rich reporting app made up of a collection of master-detail forms that will export excel and pdf. This is a read-only app to an existing data warehouse.
My plan is to create a set of entities and then define a set of finders, where each finder represents one of the required reports. No idea how I am going to handle the master-detail display of the file export.
Anyone using roo willing to point out what my options are for master-detail and file export? Also, how good is roo for this type of app?
I have used gvnix addons and they seem to serve the purpose you are looking for. Here is the link for the addons:
https://code.google.com/p/gvnix/wiki/DocPattern

Extensible framework for context-sensitive help in web application

For the web application we are currently working on, we will have to think in advance on how to roll it out to a number of different user groups. From a functional side it is important to have a documentation system in place that can be used to generate a user guide and context-sensitive help from the same source files.
We have planned to use DITA as documentation system and are now thinking about an easy and extensible way to let developers specify elements that provide context-sensitive help and can be populated by the technical writers and trainers.
Based on DITA we would like to generate a user guide in PDF and context-sensitive help integrated into a JSP-based web application. What recommendations do you have?
We are already in the process of evaluating a commercial application that has the following features
authoring tool to identify elements on a web page that will be populated with help information
integration with learning management systems
support for applications that are not web-based
Do you have any framework recommendations? In addition to the above, the following would be great
integrate with DITA (in any conceivable way)
user group specific content (user retrieved from web application)
can be used from within a simple web application to show (html) tool tips
association of help context with the following hierarchy: application > page > element (HTML id?)
DITA is a document architecture, not a tool. So it does not constrain your choices for an authoring tool, or for producing PDF and on-line Help from your DITA source. It's not clear what sort of on-line Help you have in mind, but it sounds more like you want HTML pages that can be displayed by the application itself than a tripane like CHM.
There are several tools that will generate your outputs from DITA. The DITA-OT (Open Toolkit) is a FOSS tool on Sourceforge that can make XSL-FO, from which you can produce PDF, and also HTML, CHM, and a few more. Then there is free DITA2Go http://dita2go.com which makes Word RTF for PDF production, as well as HTML and several forms of on-line Help; it uses the topic ID attribute as part (or all, if you want) of the HTML file names. Plus there are commercial programs, though not with much of a benefit over DITA2Go.
You are best off not to think of PDF as an on-,line Help delivery format, but just as a version that customers can print out and use as hard copy. And tooltips are really up to your Web application more than a help-generating tool.

Best way of printing simple reports in java

I have developed a Java application and now i want to give some simple printing support. Something like printing invoices , some reports etc.
Right now I'm creating that stuff in html, showing it on JEditorPane. but html support is quite poor and I'm really fade up of that thing. Is there any better way of doing such thing?
Any better browser component, or better tool to create such simple reports? (JDK 1.6)
I love JasperReports for that. In combination with iReport (a GUI for creating the reports) is the best I could find for free in Java to do reporting.
You can also generate PDFs files with iText for printing. Although I think it will be easier to use iReports.
JasperReports is a pretty nice reporting tool for Java. It could be a bit heavy weight for what you want.
Another solution is BIRT which is very simple to use : it is an Eclipse project with a visual editor for your reports. The report is built in 3 steps :
create a DataSource
create a DataSet on this DataSource
create your report, based on the DataSet
DynamicReports is an open source reporting tool. You can create reports quickly without needing to use a visual designer. See the examples.
When printing invoices and reports, no doubt you want them to look more than basic - hence your problem. If your swing application has a server-side component, then look at libraries like Jasper and Docmosis to produce decent reports from the server (since heavy-weight server side is typically aok). If you really need a library just for a client app, there's an old library called JViewPro which is pretty yuk to code with, but can let you layout reports in code for displaying and printing and is a single jar (just be careful about memory usage).

Categories

Resources