BIRT in Eclipse 4.8 How to have multiple Page Number as Footer? - birt

Ok, I feel like I'm just going in circles without much results.
I'm trying to create a PDF report with two tables with different data sets.
What I need is each table have its own page number and total page number as footer.
So it will be
............
l Table 1 l
l              l
l     1/2    l
............
............
l Table 1 l
l              l
l     2/2    l
............
............
l Table 2 l
l              l
l     1/2    l
............
............
l Table 2 l
l              l
l     2/2    l
............
I've put each table into separate master page, but no success.
You'd think that each Master Page will keep its own page numbers, but no.
Any guidance will be appreciated.

See How to restart page number from 1 in different group of BIRT report for a similar question.
You can either use separate RunTask and RenderTask and page variables or you could post-process your PDF outside of BIRT.
Anyway, it is possible but a bit complicated.

Related

Maatwebsite\Excel returning complex table `FromView` takes too long

I have a complex excel which I managed to build using FromView interface. I had to use FromView because I have to manage different rowspans but the problem is that it goes on Maximum execution time of 60 seconds exceeded error for more then 500+ rows and it needs like 15 sec for just 100 rows.
Link with how I implemented the export: https://ibb.co/9VcZKDj
The data of the model I'm returning has 5 related tables (hasOne) which are being mapped on the final excel also.
Inside the view I make different foreach in order to map data as required. Link with image of the view: https://ibb.co/k8WG2jm
Link with image of a part of the excel I have generated for 100 rows: https://ibb.co/NpzC9yq
Any idea on how to achieve this. Thank you!
P.S. I'm not considering using a queue job because the rows at their max will be 2000.
I did managed without using FromView but using WithMapping and WithEvents in which I did hard coded the customization of the cells with PhpSpreadsheet helpers and it takes like 1.7-1.8 sec for 2000 rows.
What I do is merging the cells and setting the value like this:
$sheet->mergeCells('B'.$startingKey.':B'.$endingKey);
$sheet->setCellValue('B'.$startingKey, $participant->agency->corporation);

Crystal report summary depending on another column

Image:
Hi, i am new to crystal reports but a fast learner.
I need to make a report, that shows the price of specific maintenance during a month.
The important thing is that the Total values are correct
As you see the "arbejdsordre" can appear multiple times because on the same column it has different "titel" the different "titel" has different "planlagt tid" but the same "Omkostninger"
I need to tell crystal report to only calculate "omkostninger" for "arbejdsordre" one time when "arbejdsordre appears several times.
how can i do this?
Best regards
André
If you go into the Group Expert and then group your report data by Omkostninger you should be able to accomplish your goal.
Display the value for "Omkostninger" in the Group Header, and then display the different "titel" and "planlagt tid" in the details section or any other group header section that is a lower level grouping than Omkostninger.
This will allow you to display each unique value for Omkostninger once and only once on the report, with all of the other data for each Omkostninger value displayed in the details.

How to loop design in SSRS report

I have a report design that have been used for a while.
Now i want to create multiple pages of the same report looping with different records.
Is there any way to do this, to loop the design..
either looping it how to get the lookup-function to register as a valid function in an expression.
I use two datasets in the report
I started by making one tablix cell and putting the entire design into this one cell, which worked nice, except i have to use one tablix with "Dataset2" and it doesn't allow me to do this because if they are nested, the inner scope has to use the same dataset as the outer scope.
The report designer can't recognize the "lookup" function which i try to put in a expression of this tablix, and using a subreport for such a small task seems like too much.
Any ideas?
Here's a quick screenshot of what I'm working with:
Everything uses dataset1 except that one tablix that needs to be dataset2...
Heres a image of my lookup-function that gives an error:
ok i got this right.
If you want to loop a single page ssrs design put the whole design in a 1x1 tablix with grouping on whatever parameter you like.
If any part of your design use data from another dataset inside of this tablix, you have to use a sub report...
It isn't that much work, but to get the correct parameter in i actually had to make a report data provider and contract + design for the subreport(which just consisted of a single table) which was a pain in the ass. none the less it worked, and all is good.

Telerik Report omitting data

After performing a product evaluation by one of the managers other can change the scoring for certain categories. This changes in scoring are stored in the database for reference.
The structure of the evaluation is like this:
Evaluatoin
- Category
- Scoring point
an evaluation can have many categories which all can have many scoring points.
My problem is the following:
If I change a scoring point a few times all is entered in the database but in the reports i am only seeing the first scoring point. The rest of them with the same name are left blank but are using space just as it would if all were visible. The stored procedure that is delivering the data is working fine. It bring all data to the report which then displayes it wrong.
=Fields.CategoryName is working fine... every category name is displayed correctly
=Fields.ScoringPointName is not working... it displayes only the first and leavese all the rest blank... if for example a scoring point name is Product robustnes it would display only the first change of scoring but wouldnt display the rest
Any ideas???
Found out what the problem was. Maybe it will be helpful for other people
I was showing the data in a group header section with grouping =Fields.DefinitionText. Thus it will only repeat if the Fields.DefinitionText is distinct. About the empty space it's caused by the detail section that repeats for every data record. Thus if I want to display all of the data records I have to move the group header section textboxes to the report's detail section.
Here and Here are some usefull things about reporting.
Cheers

How to make a table with many columns in a report

I would like to create a report containing a table that will not fit to one page, since it has too many columns. I want BIRT to create a report that you can print and put the pages next to each other to get the whole table.
An Example:
My table has 20 columns, 10 fit on one page. The Table has enough rows to fill 2 pages. When I put the printed pages on a table like this:
P1 - P2
P3 - P4
I see the whole table with all 20 columns. How can I do that with BIRT report designer 3.7.0?
Since Birt is page oriented, I guess this will not work.
I guess you'll have to create one report with the whole table to display on the screen, and another "print optimized" one with two tables distributed over two pages.
I actually saw a similar question on the official BIRT eclipse forum. They suggested adding a page break inside the table and that should break up the columns across the different pages (unless I mis-understood what you are trying to accomplish).

Resources