Birt hyperlinked reports in single page - birt

Is it possible to have 3 reports all linked to each other on a single page.
Suppose I have 3 reports. First one drills down to second and second drills down to third i.e. on clicking on first report the second opens and on clicking on second the third opens. Also the second report needs parameters which are passed down from the first report.
Now these reports open up in a new page on clicking. I want the second report to open below second report and third below second. Is this possible??

Short answer:
Yes
Longer answer:
There are a number of different ways of combining reports and linking them to each other in BIRT. Reports can be delivered as web pages, PDF, Excel, etc. Obviously differing deliveries would want different solutions.
If your are delivering to PDF where the report would be printed, you can essentially put three reports (tables) on the same document which all show the results based on the same parameters
If you are delivering as web pages you can have links in pretty much any place on the report that will jump to another report using a value as a parameter (i.e. Report1 = everything for a week; click on "Monday" see Report2 with just everything from Monday; click on "Noon" and see Report3 with just everything from Noon.

Related

Overlap Subreports SSRS

I was trying to create one report with several pages doing this:
I've created like 3 reports with different embedded datasets (each report has nothing to do with the others).
I've created a main report where i put the 3 subreports, overlaying them.
In SSRS web view i can change the the pages in order to see each subreport in a different page.
The problem is when i tried to export the report in PDF, there is not a "page break" so the first page contain all the reports overlayed.... this is a big issue....
Is there a way to fix this?
You can enclose sub reports in a rectangle and provide page break properties to the rectangle.
1st sub-report should be within 1st rectangle and as is.
You can also make sure, sub-reports are one-by-one in the design for proper page breaks.

Printing issue with SSRS report

I have run into a problem with an SSRS report..... The report will generate around 20 pages, with unique data on each page. I have used a page break to do this.
At the top of each page is some data referring to each page.... a vehicle reg number, a driver name etc. This data is coming from an expression. reportitems!.columnName.Value & reportitems!.columnName.ValueWhen the report is run, in design mode, or viewed in Chrome after being deployed, each page has the correct data at the top of the page.... the driver name changes etc.
However, when the report is printed from the browser, or exported to a PDF, the data at the top of each page is now the same. Basically page 1 info is repeated on each page. The report data is still unique on each page, but the reference at the top has now repeated.
Has anyone ever encountered a similar problem, or any idea what may be causing this? I am very confused, as before printing, the report is showing all data as expected.
The 2 images show page 1 and 2 of the report, both numbers in the expression are different.
This image shows page 1 and 2 in the PDF, both numbers are now the same.

BIRT generate dynamic reports

I created a report in birt, where I would like to click on one of the data points in the report. Then it should link to a new dynamically generated report, that shows the data from the date where I clicked on the last report.
I got a little .gif for you, to demonstrate what I've already done.
HERE
I did this by creating two reports. The first one being the graph with the two lines which represent random test data. When I press on one of the rectangles from the graph, a hyperlink gets called, which sends me to the second report. This was done by adding a mouse click interaction on the Y values with a drill-through that directs you to another report.
Here is my problem: I want the 2nd report to dynamically adapt according to the date which I selected on the first report. Like seen in the example .gif. Select 31.07.2017 -> show detail from that date.
I don’t want to create a new report for every single date and manually link every single one of them to the correct date. This would be tedious and with updating, new data every day it would also be impossible to maintain.
So how do I do this?
Alright, I made it work with data set parameters and report parameters.
Details for the answer can be found HERE
All I had t do is define a paramater and pass the values from my report 1 to my report 2 via the parameter and its working!

BIRT: Fit to whole page in report design?

I have a report and want to fix it to 1 page (A4) regardless of the number of rows in the table. Usually it's 10 rows but can be more in some cases.
Anyway I need to use BIRT in a fixed context (3rd party application), eg. no option to adjust the BIRT viewer or url params. Therefore how can I add this option to my report design so that it is applied automatically?
I don't think it is possible to force a render option from the report-design. If it was it would probably achieved by using this code fragment from "beforeRender" script of the report:
importPackage(Packages.org.eclipse.birt.report.engine.api);
reportContext.getRenderOption().setOption(IPDFRenderOption.PAGE_OVERFLOW,IPDFRenderOption.FIT_TO_PAGE_SIZE);
I tried it, it appears at this stage the BIRT task has already applied render options and therefore this new value is ignored.
If you have access to the source code of this third party app it is quite easy to add a "Fit to" PDF render option.
Otherwise you will have to change the report-design and make it a little bit more dynamic: there are many design tips allowing to fit a report in a single page, one of them is to change the height of some items by script depending on the number of rows of the table.

Use report components several times during report generation?

I'm maintaining a project which uses a pretty hefty Crystal Report and, during moving from VS2008 to VS2010, the report just stopped working at runtime (but it still Previews just fine. Go figure.), so I'm having to reconstruct it from the ground up.
During report creation, several parts of the report are used more than once. The following section shows the basic layout of the main report page (each bullet point represents a different section of the Main Report form), along with the behaviour of each section.
On Page 1
The first section of the main report form is empty, but the empty space in it appears not to print
The second section of the main report is printed
The third section of the main report is not printed
The fourth section of the main report is printed
Subreport A may be printed, depending on a data element
Subreport B is printed
SubReport C is not printed
Main report footer is printed
On Page 2
The first section of the main report form is empty, but the empty space in it appears not to print
The second section of the main report is printed
The third section of the main report is printed
The fourth section of the main report is not printed
Subreport A is not printed
Subreport B is not printed
SubReport C is printed several times, according to the number of rows returned by a query, one printing for each query
Main report footer is printed
If SubReport C is printed enough times, another copy of Page 2 will be printed, with the two main report sections (2 and 3) reprinted on each page.
What I want to know is where I can program these things to happen. I can't seem to see any code that's actually giving these instructions. The only code that's used to generate the report at runtime is, reportObject.ExportToDisk(), so it's not being done there.
Go to Report->Section Expert and you'll see all the options you're talking about. For each section & subsection, this is where you can suppress sections, move content to new pages , etc. (Once you're in there, you can F11 for help.)
To activate an option only on certain conditions (like the value of a field), use the X-2 button to enter the Formula Editor. In most cases, you'll have to make a formula that results in a boolean value.

Resources