Description

The PersonalizedExportSource component enhances the traditional ExportSource of the report module by allowing the title of the generated report to be set and by using the B.tib custom periods (TimeRangeDefinition).

 

Implementation

  • Add a PersonalizedExportSource in the ReportService
  • Link the "out" slot to a Recipient (a FileRecipient for example)
  • Define the source in the property sheet. It is possible to specify a .px page, a history or a BQL query.
  • Specify the desired title of the report.

Properties

  • Source: Allows you to enter the ord of the source to export (as in an ExportSource of the report module). During a history export, the history id must be followed by "?period=timeRange" (to manually add in the ord) so that the period defined in the "Time Range" slot is taken into account.

Example: history:/activeDemo/Enregistrement1?period=timeRange

  • Report Name: Changes the name of the generated report. Pay attention to special characters if a file is generated in the JACE.
  • Time Range: Allows customization of the period used to export a history. The possible periods are those defined through the Time Range Definition of the BtibService. To use this, add "?period=timeRange" after the history id.


Actions

  • Generate: Launches the generation of the report