To allow a user to navigate the components of a report with the click of a button, you must create a document map. A document map consists of a series of bookmarked report components, typically headings, that are organized in a hierarchical format. This map of the document allows users to see the organization of a report and quickly navigate to a particular component. These document maps are particularly helpful for navigating long and complex reports. The document map can be accessed through the bookmarks feature in any program used to view PDF documents. Optionally, you can also make your document map visible in a Table of Contents Control .
The following tutorial makes use of the navigation properties available in the Label Control, however navigation properties are included in a number of controls. For more information on the navigation properties available with each control, see the Control Reference.
Step 1: Create the report
World Time Zones
.https://sampleserver5.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer
, and then click Next.Step 2: Set the report to run on 100 features
To create a report that requires navigation, we must run the preview on many features. As it is unreasonable to manually enter 100 OBJECTIDs into the report parameter, we will modify the query to automatically query the first 100 features.
100
.Step 3: Configure Group Header bands with data
Select the table that contains the table headers.
You can select the whole table by opening the Report Items List and selecting the table from the list of items.
Configure GroupHeader2 with a Label control populated by the POP_CLASS field.
Drag the POP_CLASS field into GroupHeader2.
A Label control appears, configured with the POP_CLASS field.
50
and Width to 250
.15
.Configure GroupHeader3 with a Label control populated by the CNTRY_NAME field.
50
and Width to 250
.20
.
Your report should look similar to the image
The group headers display once at the beginning of the report. To further organize the data, each header must appear once for each group of data.
Step 4: Configure the Group Header bands to group data
The group headers now appear once for every group of data. However, there are still no bookmarks to help navigate this large report.
Your report should look similar to the example
Step 5: Configure the Group Header Navigation properties
[POP_CLASS] is added to the expression.
[CNTRY_NAME]
into the expression and click OK.The header of the document map reads Report. When expanded, all headers from the report appear in one long list, with no hierarchy imposed.
Step 6: Configure the document map hierarchy
Table of Contents
.The document map appears with Table of Contents as the heading, and all sub-headings are organized in a hierarchical format.
Your document map should look similar to the example
Optional: Add a Table of Contents control
Configuring the bookmark navigation of a report lays the groundwork configuration for having a Table of Contents Control in your report.
Table of Contents
.By default, the table of contents starts on a new page. Each item in the table is linked to the location in the report of the item.