To create an index of the items in a table, you have two buttons
in the button bar: Index
and Citation
. You need to create two layouts: one
for your document, one for your table of contents.
In the first layout, you need to have a table containing data, which will produce a document with several pages. This data is grouped to a certain node of your XML data source. The index will list those items belonging to the node that you grouped the index field to. If you put the index field into a table grouped to e.g. the node Product, the index will show the products contained in that node.
Example:
Create a simple table with three columns and one row, just for demonstration. You can use the XML file from ..\Tutorial\Example_manual. Group the table to the node Product because we want to see all products displayed in it. Drag the node Report/ProductGroup/Product/Name from the XML window into the first cell of the table, then open a dynamic image frame in the second row and set it up to display the product images (group to Report/ProductGroup/Product/Properties/img and select the path to the image base). Then make the table row a little bigger by pulling its bottom boundary line and select the function Fixed row height, so that the table is guaranteed to extend over more than one page in the document. The table could look like this now:

To create the index you place an index frame into the third table cell. The index we want is supposed to display the products in the table and the page they are on.

You do not need to enter anything into the index frame, just pull it to the right place.
Save your layout file, e.g. with the name table.xsf.
Now create the layout for your Table of Contents page. We also use a simple example here where we want to have the product and their page number displayed. This layout only contains a table for the index with one row and two columns:

Attention: You need to set the same XML file as data source!
Drag the node Report/ProductGroup/Product/Name into the first table cell and add a Citation frame to the second cell. That is all there is to do right now.

Save this layout as well, e.g. with the name index.xsf.
Now use the Multilayout manager in the file index.xsf (see chapter Multilayout manager) to combine these two layouts. Add the two files to the list and generate the layout:

The result is a five-page document where the last page is the index for the previous four pages, showing the product name and the page it is on. If you put the file index.xsf first in the list, the index will be the first page of the document.
This is the general principle to create an index for a document. The index page can certainly be designed as you like it.
Please note: The index frame reads and generates IDs for all the items in the table grouping that it was grouped to. The citation frame on the index page reads these IDs and assigns these to the correct pages when the layouts are combined in the multilayout manager.