> For the complete documentation index, see [llms.txt](https://docs.aqua-cloud.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aqua-cloud.io/documentation/reporting/adding-table-of-contents-to-a-report.md).

# Adding table of contents to a report

Add a dynamic table of contents to your report by configuring bookmarks for fields like name or ID, displaying item links with page numbers for easy navigation in aqua.

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&amp;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&amp;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&amp;token=b237eb51-4ec1-41ad-b876-8c786508c0dd" alt=""><figcaption><p>Table of Contents view after running the report</p></figcaption></figure>

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aqua-cloud.io/documentation/reporting/adding-table-of-contents-to-a-report.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
