Nuclos subreport within a subreport: sub-sub-report, pass parameters, alias without underscore, single result row.

globe with meridians Language: Deutsch · English

hammer and wrench Subreport within a subreport

Multi-level reports – pass parameters from the main via the sub to the sub-sub-report.

Auf dieser Seite

Report as a tree: sub-sub-reports

A report can branch out like a tree – e.g. order (main form) → order positions (subreport) → article groups (subreport within a subreport).

LevelRole
Ordermain form (trunk)
Order positionssubreport (branches)
Article groupssubreport within a subreport (twigs)

Passing parameters through

The sub-sub-report is inserted into the subreport analogously to the subreport and addressed via a parameter (e.g. $P{SubSubreport}). Crucially, this parameter must exist both in the subreport and in the main form. The main form passes it on to the subreport.

Parameter passing main → sub → subsub.

Data sources for sub-sub-reports

The sub-sub-report's data source draws its parameters from the parent subreport. To do this, declare a parameter (alias, e.g. intidArtikel) in the subreport and use it in the sub-sub-report as $intidArtikel.

Do not use an underscore _ in the alias. Also, the parent record's result set must contain only one row.

Alias declaration in the subreport.

Related pages

clipboard Subreports


Basics.

Öffnen →

printer Subreport in the designer


In the designer.

Öffnen →