Master-Detail Report with Detail Bands

<< Click to Display Table of Contents >>

RayVentory Data Hub > 12.5 u5 > Dashboards and Reports Customization Guide > Designing Reports > Create Reports 

Master-Detail Report with Detail Bands

This tutorial illustrates how to display hierarchical data in a master-detail report using nested Detail Report bands. This technique is effective if your data source contains a master-detail relationship. Another technique is described in the following topic: Master-Detail Reports with Subreports.

 

MasterDetailREportwithDetailReportBands

 

1.Create a new report or open an existing one.

2.Bind the report to the required data source and set up a master-detail relationship as described in the Bind a Report to a Database topic.

3.Drop the required data fields from the Field List onto the Detail band.
 
MasterDetailReportswithDetailReportBandsFieldList
 

4.Click Insert Detail Report Band to create a Detail Report Band.
 
InsertDetailReportBand
 
Select the Detail Report band and select the master-detail relationship's name in the Data Member property's drop-down list.
 
DetailReportBandDataMemberProperty
 

5.Switch to the Field List, select the data fields while holding down CTRL or SHIFT and drag-and-drop them onto the Detail band.
 
DetailReportFieldList
 

papercliper

Note:

You should drag-and-drop fields from the category corresponding to the master-detail relationship to correctly generate the detail report's data. Otherwise, the report will display only the first record of the detail table as many times as there are records in this table.

 

6.Customize the report's appearance and format values.

 

Switch to Preview to see the resulting report.