The articles in this section of the Knowledge Base involve working with Master-Detail lists for display in reports. To learn more about Master-Detail Reports and how to access the Report Designer, see Creating a Master-Detail Report in Report Designer. This article explains numbering Master-Detail reports.
Just like with ordinary lists, the rows of a Master-Detail report can be numbered. However, there is one difference. When numbering is used in the Detail of the Data band, the numbering restarts for each sublist.
The numbering for the Master list is in red, and the Detail lists are in blue. Notice how the Detail lists restart for each Product.
Besides using system variables, the numbering can be done using the Line property of the Data band. The expression to be entered into the Data Editor is as follows:
Using the Line property of the Data band is beneficial when there needs to be numbering for two different bands in one expression. For example, inserting the following expression on the Detail band results in the line number of the Master band being displayed alongside the number of the row in the Detail band:
When rendered, this results in the following: