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)
Page navigation in script
Rob77
Hello,
is it possible (how?) to automatically jump to last page on report generation (html)?
I have tried to look for the solution on the net, but to no avail.
Regards,
Robert
Find more posts tagged with
Comments
mwilliams
Hi Robert,
To navigate to a pagenumber, you just need to add the parameter &__page=pageNumberYouWant to the report URL.
Hope this helps.
Rob77
As always, thank you for your answer.
It doesn't solve my issue, though.
1. When I run my report as frameset, __page=3 has no effect - always first page is displayed on report creation.
2. When I run my report as run, __page=3 has no effect - there's no page splitting, all results are displayed on single page.
Regards,
Robert
mwilliams
Robert,
Are you using the deployed viewer?
Rob77
I'm not sure if I understand ...<br />
I have Birt server (birt2 directory).<br />
To deploy my reports I manually copy rptdesign and rptconfig files to that directory - that's all I do.<br />
And when viewing reports I use the following links:<br />
<a class='bbc_url' href='
http://server:8080/birt2/frameset?__report=report_name.rptdesign&__page=3'>http://server:8080/birt2/frameset?__report=report_name.rptdesign&__page=3</a><br
/>
or<br />
<a class='bbc_url' href='
http://server:8080/birt2/run?__report=report_name.rptdesign&__page=3'>http://server:8080/birt2/run?__report=report_name.rptdesign&__page=3</a><br
/>
<br />
Shall I do it in different way?<br />
<br />
Regards,<br />
Robert
mwilliams
Robert,
Your birt2 directory is the deployed viewer example, I would guess. So, yeah, that's how it should be. Are there 3 pages in the report? I see you said it's all displaying on one page. What version of BIRT are you using?
Rob77
Good morning,
the Birt version is 2.3.2. My report has crosstab, which contains variable number of columns, depending on the data set.
For example it can contain 300 columns.
For me crosstab page break setting is tricky and scattered through different places. So let me explain that in detail:
1. Crosstab page break properties: before, after, inside: auto
2. Crosstab column area page break properties: before, after: auto, interval: 12
3. Crosstab column properties: before, after, inside: auto
Because it doesn't work (described in separate thread), I have the following in column onCreate():
this.getStyle().pageBreakInside = "Auto";
this.getStyle().pageBreakBefore = "Avoid";
this.getStyle().pageBreakAfter = "Avoid";
Ok. Going further. In frameset view I have number of pages = number of columns/12. In run view I have one single page with all the columns. In Eclipse preview (before deployment) I have also only single page (with usually less results due to data rows number constraints.
I guess you would ask for the example. I'll try to prepare it in spare time.
Regards,
Robert
mwilliams
Robert,
Yes, if you could create an example, that has your issues, with the sample database, that'd be great.
Rob77
Ok, I did it.
And I think I have to refine my original question. It started with __page not working in the URL. Now I think it's not working, because I had to manipulate page break grouping, because IMHO it works fine only on highest level of grouping.
In the attached files I have three columns - A, B, C (dimensions) and one measure.
I put one level (C) in the row area. I put two levels (A/B) in column area.
When I do page break for A, I have desired number of columns per page. And __page is working as expected.
When I do page break for B, I have no control over number of columns per page (actually I have, but it requires some hacking and leads to __page not working).
So the question is: how can I control number of subcolumns per page? Is it possible?
For now I will enable page break for highest level, as it is quite easy and would allow me to control page number with __page=. I still wonder, though, if it is possible to control page number from within report, without modifying URL.
As I've found out that __page does not work when any parameter is used. It has no effect.
Sorry for so many details in this post.
Regards,
Robert