r3 - 06 Jan 2007 - 11:25:36 - TanDunlinYou are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > WorkingWithSub-Report

Working with Sub Report

A Sub-report is a report that is within another report, main-report. A single main-report can consist of multiple sub-report.
A same sub-report can be shared used across any number of main-reports. Data from the sub-report is used in the main report.

Report is added as a sub-report using Sub-Report Component and placed within main-report's layout. The datasource for sub-report is required to be added to the main-report for accessing.


Sample available at the following directory :-
SubReport
File System:KnowledgeBase

How does the sub-report gets it data

When a sub-report is rendered, it will look for datasources in the following order:

  1. A datasource name defined at the master report template -> subreport component
  2. A datasource name defined in the sub report template

when a name has been found, it will then get the datasource file in the following order:

  1. A datasource with matching name defined in the master report template
  2. A datasource with matching name defined in the sub report template
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback