# Adding table of contents to a report

To create a table of contents in your report, drag the corresponding control element into the report header band. If there is no report header yet, aqua will create it, as soon as you drop the table of contents element ![](http://aquawiki.andagon.com/pictures/drex_table_of_contents_2_custom.png). &#x20;

<figure><img src="http://aquawiki.andagon.com/pictures/drex_table_of_contents_2_custom_2.png" alt=""><figcaption><p>Table of contents element in the Layout view </p></figcaption></figure>

Now select the field you want to bookmark, e.g. the name or ID of the items. Go to 'Expressions' and select 'BeforePrint'. Enter the value in 'Bookmark'.&#x20;

&#x20;

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FhoKREZZOhznzD4S4ERwT%2Fimage.png?alt=media&#x26;token=dec7cd0c-f311-44f6-97f4-09d7f37ad5ae" alt=""><figcaption><p>Setting the Bookmark value</p></figcaption></figure>

You can either type the value manually by entering the name in apostrophes, or select the available field.&#x20;

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FWXq8ntTXPV9x39Xn6zxW%2Fimage.png?alt=media&#x26;token=029d83f6-7d53-4bfa-a736-e3b8bad08c50" alt=""><figcaption><p>Typing the Bookmark value</p></figcaption></figure>

If you execute your report now, you will see all the items listed with their page number and the field you configured as a hyperlink.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FbZHRF1ZbmMnPqqVQufZ5%2Fimage.png?alt=media&#x26;token=b237eb51-4ec1-41ad-b876-8c786508c0dd" alt=""><figcaption><p>Table of Contents view after running the report</p></figcaption></figure>

&#x20;
