BIRT report - Getting HTML report with paging output - eclipse

I want to be able to integrate birt with my application. I need the output to be in HTML format - preferably with paging or ability to scroll as the reports may become lengthy.
Can anyone provide any examples or just a basic rundown as to the best method of implementation this can be done in?
I have used BIRT and can make the reports I just don't 100% understand how to deploy them even after looking at a lot of resources including Acuates own.

You need a report and the BIRT engine to turn that report into HTML. The engine can be embedded in your own Java application or use their free F-Type server to embed with one of their APIs.
Multi-page export can be accomplished using:
their JavaScript API and either the free or commercial BIRT Viewer
their default HTML emitter with an external CSS3 file for page layout
customize or create a new HTML emitter with the HTML tags that you want
Integration documentation is at
http://developer.actuate.com/resources/documentation/ihub31/integration
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/

Related

Integrating TIBCO Jasper Reports to web

I am currently working on web application based on Angular JS,HTML5. I have a report section on the same where i am displaying the report data through API calls.
I feel that displaying reports through API call is not the best practice so i did some research and came across TIBCO Jasper reports and its looking fine till now.
What i have done till now is
Installed Jaspersoft Studio in my local machine.
Connected the same to my DB and generated JRXML file.
Uploaded the JRXML file to jasper server and generated reports from DB.
What i need to do is
I see i can generate reports in various formats from jasper server like pdf, excel etc.. How do i integrate this to my web page?
Please assist me on this and share your thoughts. Thanks in advance.
Are you using the community or professional version? If you are using the professional version, you can use their Visualize.js library to access your reports from a web application. We have had success integrating Jasper reports into our Angular app, though we've found it to be pretty buggy and it has required several workarounds on our part.
We started by creating an Angular service that handles all the communication with Visualize/Jasper. Once you get all the service plumbing done, it's just a matter of creating an empty DIV tag with an ID and passing that ID to the Visualize function that generates the report. Visualize will handle the REST request to the Jasper server and automatically inject the JS and HTML returned into your empty DIV.
You can find more info on Visualize (including API docs) here:
community.jaspersoft.com/project/visualizejs
You can integrate JasperServer into your web app using iFrames with their HTTP API. This would allow you to reuse the UI that is part of JasperServer. It is possible to customize the look and feel of this UI using themes. More info here:
http://community.jaspersoft.com/wiki/embedding-using-http-api

How to create jasper reports in JSP and Java code

I know how to design jasper report in jaspersoft iReport Designer.
I dont know how the designed report can bring to front end (web browser).
Please send me related links.
I know little bit JSP.
There are many ways to integrate your reports with your web application.
Refer this link
Also Refer this link
Refer this link for integration using java web application.
The simple way is to embed the jasperserver page in your web application using iFrame tag.
Note: One major thing is that you have to deploy your reports to your JasperServer

Birt reports and Eclipse Html5

When I create a report with Birt 4.4.2, it seems impossible to generate the table style in html5. Is there a way to do this?
"HTML5" content can be achieved using various options:
embed the visualization in HTML5 using the BIRT JavaScript API
generate your own visualization using the BIRT REST API
link to an external CSS file
write an HTML5 emitter
Someone seems to have started writing a new HTML5 emitter at http://www.eclipse.org/forums/index.php/t/457537/

How to integrate ECharts with BIRT/Pentaho?

I'm looking for a report engine which may:
connect to data source via JDBC
create logic data set by grouping/aggregating the raw data
include a data filter on the top of each report, which allows my client use the report interactively
add custom charts, in my case, it's ECharts https://github.com/ecomfe/echarts
support multi-tenancy paradigm (new requirement)
Now BIRT and Pentaho are the two players on my table.
For pentaho, it's really hard to find useful document to at least clarify if it's capable. Please if you're familiar with it, let me know if pentaho community version meets my requirements.
For BIRT, I've found evidence it support my first 3 needs. But for custom charts, I can only find examples/docs about adding custom IMAGE/SVG charts. As ECharts is based on canvas, I'm not sure if it's possible to integrate ECharts with BIRT.
Thank you!
Yes, it is possible to integrate javascript charts in BIRT. Basically:
Select the top-level element of your report outline -> Script tab -> clientScripts
Include here your echart resources (.js and .css) using "head.js" (see link below for more informations)
Add a text element to the report
Set the type of this new element to 'HTML'
In a script tag, initialize your echart object in a "head.ready()" instruction (see link below for more informations). The tricky part is to understand how to use a server-side dataset in a client-side chart within this html script.
You can find more informations and a full example of a such report here, this example embeds a jvectormap in a birt report. Furthermore, see a live demo here, where a JIT chart is integrated in a BIRT report.
However since these charts are created using a client-side framework, obviously BIRT won't be able to export them in PDF format. You can see in the live demo linked above, how a BIRT report can easily handle a different output when users export to PDF.
You can do it in Pentaho, but which tool to use it's a matter of debate.
Using Pentaho Report Designer:
- Connects to DBs using JDBC;
- Allows grouping rows based on a field or fields and calculating functions such as running sums;
- Can use selectors (single or multi-valued selectors) to interact with the report, passing the selector values to the queries;
- As far as I can tell, you don't have many options to choose a specific charting engine.
However, you can use CCC as the charting engine, which is a Protovis based Javascript charting engine, cross-browser compatible (for the most part), renders SVG charts with a decent fallback for IE (I believe the fallback is flash but I'm not sure if it changed recently) and produces decent looking charts.
If you HAVE to use that chart library, then I suggest using C-Tools dashboards instead, where you can embed as many different JS files you want and you have full control over the JS and CSS of the page. But most of the reporting functions from PRD will have to be implmented by you.

interactive jasper reports

I am using jasper reports in my project to generate html reports. But the generated reports are static. Now we want to add some interactive features in it, like simple sorting and searching of columns. This is preferably to be done the client side. How can this be achieved ? So far I have tried to embed jquery into the generated report with no luck. Does jasper report provide such kind of functionality?
Use parameters and re compile the report every time you want to filter the data.
With your meaning of the word "interactive", nope that is not possible. A report is only a report - a presentation medium that shows data in such manner that is required by the business rule. You can format data here. You can stylize it, add image and what not. A client side application is probably what you want.
Well, your exact requirement can be achieved if you publish the Jasper Reports on the Jasper Server. Once published, all your reports become interactive (For Charts, you must use the PRO charts and not the basic HTML charts but for tables, it works automatically.)
Once you publish it on the Jasper Server, the features that you get are:
Sort button with various types
Export the Report to many formats (PDF, XML, etc - more than 10).
Zoom IN and Zoom Out.
Bubble for your charts making them interactive, etc.
Yes, interactivity is possible in Jasper Reports, but the thing is that you need a Jasper Server Pro or Enterprise version for achieving this. If you are using a community version, it is impossible to create interactive reports. You can download the free trail pro version of jasper server for 60 days from this link https://www.jaspersoft.com/download
For much more details go through this link https://www.jaspersoft.com/community-commercial
Choose according to your requirement.