Eclipse BIRT report multiple pages issue - eclipse

I've created a BIRT report to be used by Maximo and when I preview my results I get several pages (one for each record). However when I run the report from Maximo using the same where clause it only generates one of the pages. I did another similar report and it's working. Does anyone have an idea why it's not working for one?

I managed to find the problem. In the table the dataset was bound to I didn't have any grouping. Once the grouping was added the multiple pages were displaying on both Maximo and BIRT designer preview.

Related

BIRT Report - using Library as basis for report design files, adding new Report Parameter not reflected in all report design files

BIRT Report - using Library as basis for report design files, adding new Report Parameter not reflected in all report design files.
I designed several report parameters into my library file and created 40+ report designs from it. Now I'm adding a couple new report parameters to the Library file that I'd like to see in all of my Birt Reports. If I open a report design file, Eclipse signals me that the library changed if I modify something on the Master Page, but not when I add a new Report parameter to the library file. Is this a defect or do I have to got to each and every report and add the new report parameters manually?
I saw that for individual Report parameters while editing the report design, there is a button in the Properties (bottom window) to "Restore Properties from the original library item", if it were manually overridden in the report, but nothing to reflect additional parameters.
Here is my library outline showing my parameters missing from the report; followed by what my report reflects.
Library Report parameters
Design shows missing Report parameters
... Is this a defect or do I have to got to each and every report and add the new report parameters manually?
This is intended.
You'll have to add each parameter manually.
A BIRT library is a collection of items like layout items, data sets, data sources, report parameters etc.
A BIRT report is more or less the same, the difference being that a report has a body.
Individual items in the report can reference library items.
But there is no such thing like an "item group" - which you would need.
But if you have a lot of reports and a lot of new parameters, you can use the BIRT design engine API (DE API) to open the reports and add the parameters programmatically. Since examples for using the DE API are rare, doing it manually will probably be faster than creating a program for this. Aapprox. 3min x 40 reports = 2h for doing it manually, developing a program will take you at least twice as long, but could be useful in the future.

How to create JapserServer report templates?

I'm pretty new to JasperReports, Jaspersoft Studio, and JasperServer but I've got a JasperServer instance up and running and have been using it to create reports from Ad Hoc views. This works well but I'd like to make some report templates so that reports run from JasperServer can have branded headers/footers etc.
I worked through this tutorial and was able to create what I thought was a fine template but when I try export it as a JasperServer template I get all sorts of validation warnings and indeed trying to run reports using it from the server results in errors.
Here's an example of the warnings I'm seeing:
The style ChartValueAxisTickFormat was not found in the template
And the errors I get on the server when trying to use these templates look like those described here. I have tried using templates without any text fields or variables though. In fact, the unexpected tokens it complains about are usually actual field ids... do I need to anticipate the fields that would be used when creating a template? Wouldn't this defeat the purpose of having templates for reports created from ad hoc views?
Anyway, there's quite a lot of information out there around creating templates for Jaspersoft Studio (iReport) reports but not a whole lot on templates for JasperServer reports.
It seems like there's something fundamental about templates for JasperServer reports that I'm missing. I'd appreciate any help with either the issues I am describing or being pointed toward better documentation for creating these templates specifically.
Edit:
I'm using Jasper Studio Profession 5.5.0.final on the desktop and a Jaspersoft BI Professional for AWS 5.5 instance as the server.
Report Template as in tutorial you have linked are for Jaspersoft Studio / static reports only. Adhoc templates are different types of objects which are described here
I have encountered the same errors, and I have solved it by simply adding a styles to my report, in other words:
In the outline of your report, Right click on Style -> create Style, then just change the name of the style by each name of missing styles apperead (for example, ChartValueAxisTickFormat).
After creation of 55 styles in your report template in jasper Soft Studio, save the report, then export it as report template.
I hope this will help you.

IReport Document Has No Pages

I have encountered same problem 'Document Has No Pages' issue as described in Jasper Reports And IReport Issue. I applied the solution provided in the given link and it started working. I am stuck behind the concept. My main point of concern is, when we are using detail band and we don't give a data query it gives Document has No Pages error. As soon as we give a dummy query in data query, it starts working. Kindly note that, i am using a subDataSet for a table component. That's where IReport generates this issue. Any pointers would be helpful.
Keep in mind that This is not an error but this is how it is configured to do.
This happens when you don't have results to display in the report from the database. But still you can set option what to do in this situation.
In Jaspersoft iReport 5.6.0
1. right click the report
2. Go to properties
3. Find **When No Data**
4. Select one from the options
There you'll see some options as No Section, No Detail, Blank Page, No Data Section, No pages.
Choose the one suits you. -_(--)-_

Filters in Eclipse Birt

I have to create a Web Application using Eclipse Birt, and Apache Tomcat to have it on line.
One report will include a table and a chart, both taking data from MongoDB.
While I succeeded in designing a simple report that accepts parameters from Eclipse Birt suite (based on the tutorials on the Eclipse website), I have troubles in handling a more complex report.
Actually, I wish to create a dynamic filter on-the-fly operating on a single column (i.e. "country") where i can choose the different values (i.e. "USA", "UK"...) and then have the rest of the data visualized in the report be refreshed correspondingly.
I also wish to place the filters in a different section of the report (header or footer...) in the same web page, and not have them chosen before opening the report like the parameters of Eclipse Birt.
Said it differently, I would like to have lookup-fields in the header of the report, to automatically filter the data displayed, so to refresh the query behind the report.
May be the solution could to integrate a report built with Eclipse Birt and MongoDB in a Dynamic Web Application using Eclipse too? Or in a GUI in Eclipse like WindowsBuilder?
Has someone faced this task and can help me?
Thank you so much,
Federico
There is not a simple 'out of the box' solution for what you are describing. But there are solutions.
The first thing to understand is that the BIRT reports as delivered via Apache Tomcat, are intended to be stagnant not dynamic. BIRT pulls the data set, then filters it and delivers it in HTML. This link describes the order of events in report creation.
As far as I am aware there is no way to actually provided the function of filtering the created report in BIRT after the report is created.
But, you can provide the illusion of a filtered report, there are two common methods.
Create multiple tables on one report, representing the display as you want it displayed, then use a button command to hide or show the appropriate tables.
Create multiple reports and have buttons the pass new parameters to a new report that opens in the same window.
There is a third approach that can be used, that gives you similar functionality. Use Cascading Parameters (right click report parameter in Outline > New Cascading Parameter Group). This of course is not the function as you envision it in your description, but can give the results you seem to be wanting.

How to create a multiple crosstab report in jasper

I would like to create a multiple cross tabs report using iReport Designer Professional 4.7.0. Please find the sample screenshot of the same below.
I was able to do everything accept the Total's row showing the type wise totals.
Thanks in advance