Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Help with increase of one parameter for each page
brunocobra
Hi all.
In a report, I have a parameter that indicates the initial number of first page's report. For the other pages, I simply need that this number be incremented, one for each page.
To do that, I put an increase of this number in the header of first group, but it doesn't works fine, because, if the details of one group pass of one page, the number is not incremented.
To understand better, I did the example and put in attachment. I really need your helps, please.
Thanks a lot.
Find more posts tagged with
Comments
mwilliams
Hi brunocobra,
What version of BIRT are you using?
brunocobra
Hi mwilliams,
I'm using version 2.2.1.
mwilliams
brunocobra,
I don't have 2.2.1. I ran it in 2.2.2. When I look at the report in the viewer, it increments from page 1 to page 7. Am I looking at the right thing?
brunocobra
That's the problem.
The report generates 9 pages, but the "counter" is counting only 7 pages, because it doesn't be incremented when a group stay in more than 1 page.
Observation: the counter begins according parameter "p_first_page".
Let's imagine that you set p_first_page as 10. In the example, that will happen:
- In page 1: Group = Classic Cars / Counter = 11
- In page 2: Group = Classic Cars / Counter = 11
- In page 3: Group = Motorcycles / Counter = 12
- In page 4: Group = Planes / Counter = 13
[...............]
However, I wish this out:
- In page 1: Group = Classic Cars / Counter = 11
- In page 2: Group = Classic Cars / Counter = 12
- In page 3: Group = Motorcycles / Counter = 13
- In page 4: Group = Planes / Counter = 14
[...............]
I hope you understand, because I really need help for this issue that I don't know how can I fix...
Thanks.
mwilliams
brunocobra,
When I run this report in 2.2.2, it is only 7 pages long, so the 1-7 count is right in my output.
brunocobra
Well, this let me think that Classic Car's Data Source has difference in different BIRT versions.
So, I decreased the margins for all sides to generate more pages. In old case, for me, it was generating 9 pages, and now is generating 12 pages.
Please, take a look again, if possible...
Thanks.
mwilliams
brunocobra,
There must be a difference between 2.2.1 and 2.2.2 in this area. This new version of the report you posted still just shows 7 pages in the web viewer for me. I'll look into getting a copy of 2.2.1 downloaded.
brunocobra
Many thanks for your disposition to helps.
I'll put a PDF version of report in attachment for you can take a look.
Thanks again.
mwilliams
brunocobra,
Alright, give this one a whirl. It should have all the correct page numbers for you. Not having the increment in the group header means that the start page will actually be what you put into the parameter box, so if you put in 10, it will start on 10 rather than 11.
brunocobra
Thank you again, but you not understand. Maybe, this is because my English, sorry. I'll try again:
- The user informs the initial page (ex.: 10); in the first page of report, this number is incremented and shows on group header (ex.: 11);
- The next page should be incremented number again (ex.: 12), but this not occurs because the group have more than one page of details, and the number 11 is repeated (that's the problem!).
Like I said in other posts, imagine this situation that's occuring:
- In page 1: Group = Classic Cars / Counter = 11
- In page 2: Group = Classic Cars / Counter = 11
- In page 3: Group = Motorcycles / Counter = 12
- In page 4: Group = Planes / Counter = 13
[...............]
However, I wish this out:
- In page 1: Group = Classic Cars / Counter = 11
- In page 2: Group = Classic Cars / Counter = 12
- In page 3: Group = Motorcycles / Counter = 13
- In page 4: Group = Planes / Counter = 14
[...............]
(this example is based on PDF that I put as attachment on last post)
I only want a correct pagination in group header. How can I do that??
mwilliams
brunocobra,
I think I understand now. I thought you were wanting to have First Page: # in the header and Last Page: # in the footer. The Last Page label in the footer was what was throwing me off. I'll try some things and see if this can be achieved with BIRT 2.2.1.
mwilliams
brunocobra,
Unfortunately, with the way it seems that BIRT only renders the group header one time and then repeats it for each page for that group, you won't be able to increment that way. However, you could possibly add another group to your table of the interval type. You could set an interval of like 24 or whatever fits on a page and use the header of that group to display the current page number with the variable "pageNumber". This header would always be rerendered for each page.
brunocobra
It was this answer what I feared.
Unfortunatelly, BIRT have yet many features to increase - I will say thousands...
What I want it's simple and basic, I don't understand why this is not implemented...
Still yet, many thanks for all helps.
mwilliams
brunocobra,<br />
<br />
The interval group may be your best bet at this time. I believe that this feature will be added sometime in the BIRT 2.5.x releases, but you could always file an enhancement request for this and any other enhancement you'd like to see at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>.