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)
Create an index page
Kily
Hi all,I´m using Birt 2.5.0 and I would like to make an index page that shows the table of contents with the labels I put for that and the pages they content, how can I make it? any idea?
Thanks in advice. Greetings
Find more posts tagged with
Comments
mwilliams
Hi Kily,
You'll most likely have to do something like this at the end of the report. You can grab the value and page number that a report item is created on and save it in a variable to recall at the end of the report.
imorilla
Hi,
my name is Iván and I am also working with BIRT 2.5 and I have the same problem as you, I want an index in the report
Did you get? if so how did you do?
Thank you. Greetings
mwilliams
Hi Ivan,
Since you can't figure out the page number an item is going to be on before render time, the page number index will likely have to print at the end of the report. You could probably store the values in an array or string variable and display it after everything else. You should be able to use the pageNumber variable to grab the page number for each item. Let me know if you have questions.
imorilla
Hi!
I tried to do as follows
in the event beforeFactory I create a list.
"myArrList = new ArrayList ();
reportContext.setPersistentGlobalVariable ( "index" myArrList); "
To this list we add elements in the event onPageBreak of each object, as follows:
"intr1 = reportContext.getPersistentGlobalVariable (" index ");
intr1.add (1.-Intro - "+ pageNumber);
reportContext.setPersistentGlobalVariable ( "index" intr1); "
and finally retrieve the variable like this:
"reportContext.getPersistentGlobalVariable (" index ");"
but I have a problem, the page numbers are incorrect
"I'm doing wrong?
Greetings!
mwilliams
Hi imorilla,
Can you attach a sample report doing what you're doing using the sample database, I'll take a look at it. What version of BIRT are you using?