This topic will guide you through the process of creating a master-detail report with dbForge Fusion for MySQL.
Note that it is recommended that you review the Creating a Simple Data-Aware Report topic first. It will help you learn how to bind report to data with Fusion for MySQL.
Make the master table active by right-clicking the table name in the Data Source window and selecting Set Active Item on the shortcut menu:
Note that in the Data Source tree, the fk_customer_address node should be available. If it is not, refresh data in the Data Source tree by clicking the Refresh Data button on the Data Source toolbar.
Right-click on your report in the document area to invoke its shortcut menu. On this menu, point to Insert Detail Report and click fk_customer_address option to add a new detail report. Detail Report band will appear:
Right-click the detail report to invoke its shortcut menu, point to Insert Band and click Group Header. This will add GroupHeaderBand to the detail report:
You can add the Label control to the added GroupHeader band and change text in it to Customer details:.
Add the first_name, last_name, and email field from the fk_customer_address node of the Data Source tree to the Detail Report band of the report. Near each label with the bound field add labels with the text changed to Customer first name:, Customer last name:, E-mail:. Also, you can drag the active field by dragging it with right mouse button. When you drop the field on the document area, shortcut menu will appear. Select the CheckBox control on this menu. Change the CheckBox text to Active.
Also, drag the label with the Phone text in it and the one bound to the phone data field to the Detail band of the detail report to show the phone number as detailed information on customer.
In this topic, you’ve created a master-detail report.