did you check the PDF in your browser or in a proper PDF-viewer? When I checked my report in the browser the TOC was also missing (probably because it was some kind of preview displayed in the browser), but when I opened it with Adobe the TOC was in the report.
For every entry in the TOC there should be an expression for the respective element which defines the name of the TOC-entry. Just add + pageNumber to that expression.
But how can I concatenate the PageNumber and my TOC is dropped in the layout. I mean where I can get the PageNumber in the layout or I need to implement a script count the pdf pages?
I meant that you should add the word pageNumber literally. It is a variable which will be evaluated during runtime such that it stores the number the of the page that is being rendered.