LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: tb on July 31, 2017, 09:15:26 am

Title: Table of Contents
Post by: tb on July 31, 2017, 09:15:26 am
Hello,

first I thank you for this great library, it seems like it will save me a lot of effort.
Despite the many features LimeReport is offering, I still miss the option of adding a table of contents to the report.
I tried to work around that myself, by setting variables on rendering time, but it seems that is not the way to go, because the value at the ToC page ist rendered before the variable is set later on. On second time rendering the value of last turn is set.
But there must be a better way to do that.
Did anyone else have to create a table of contents and found a solution?
Is such a feature under development and will it be released soon?

Thank you very much in advance.

Best regards

Tobias
 
Title: Re: Table of Contents
Post by: Arin Alex on August 02, 2017, 09:53:18 am
Hi!
Unfortunately at the moment there is no way to add toc to report.
I will think about it.
Do you have any suggestion how to do it better?
Title: Re: Table of Contents
Post by: tb on August 02, 2017, 10:20:16 am
I dont know how the addition of the last page number internally works. (page 1 of 10)
Maybe thats the way to go. Then one could add like a tag to the text-field that should be referenced in the toc.
At the end (the same time the last page number is rendered) the text marked with the tag is put into the toc and combined with the saved page number.
Not sure if I think to simple, but that would be my first try.

Thank you for looking into it.

Best regards

Tobias
Title: Re: Table of Contents
Post by: Arin Alex on September 04, 2017, 09:43:57 pm
Hi
I have added the TOC generation to the development branch at github 

https://youtu.be/9tVicuuTWFc
Title: Re: Table of Contents
Post by: tb on September 12, 2017, 11:46:40 am
Thank you very much!
I will try it out as soon as possible.
Great Support!

Best Regards

Tobias