> 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

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="/files/MvX8Ps4LgUORTA8741jv" 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="/files/RTTdHMYh5XoIIrTuo2ze" 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="/files/IVvPaf4d51MD5PCnS9aS" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
