To create a master-detail report
Master-detail reports use related information that is stored in another feature class.
- In AutoCAD Map 3D toolset, click Enterprise and open a project
- Select the Industry Model node.
- Click .
- Open the report.
- In the right pane, click the Detail Body 1 section.
- Click .
The child group with Head 1.1, Body 1.1, and Foot 1.1 is inserted between the Detail Body 1 and Detail Foot 1 sections.
- In the right pane, select the Detail Body 1.1 section.
- In the left pane, in the Group:Detail property grid, select the SQL property to define the SQL statement. Click and enter the following statement:
select * from ...
where ... = {Id}
At runtime, the application replaces the value {Id} with the value of the column ID from the record in the parent group.
- Click . Select the columns to print.
You can select several items (multi selection) by pressing and holding <SHIFT> or <CTRL>.
- Click the Detail Head 1.1 section.
- Click . Add the text controls for the caption.
- Click .
- Click the Preview tab. Each master display model followed by the detail definitions and colors is displayed in the report.
For more information about master-detail forms refer to TB_RELATIONS: Master-Detail Relations.