This package can be used with iReports report designer, following is a description of how to do so.
The class RecordDataSourceProvider implements JRDataSourceProvider ands acts as the interface between iReports and the RecordDataSource (file based data source for a report).
Note: The class name is net.sf.RecordEditor.Jasper.RecordDataSourceProvider
First you need to create a report, then
Follow is the description of the fields on the screen:
The Record Layouts can be grouped into different systems. This Combo Box is used to select a specific System.
The Record Layout used to format the file. Only layouts belonging to the selected System (above) are displayed.
Note: A Record Layout describes the format of a file, each layout consists of either
Define fields as numeric
If this check box is ticked, fields defined as numeric in the RecordEditor DB will be defined as numeric in the Report (otherwise they are defined as String which is faster). If performance is an issue, unselect this option and define only those fields that need to be numeric as numeric.
When a file consists of more than one record, you would use this combo box to select which record should be used in the report.
i.e. If file consists of
You could choose Store if this is a store level report.
Note: The last record of every record type is available via [record name].[Field Name]
In this List box you select the records that contain fields you want to use in the report. Only fields from the selected Records will be returned to iReports.
Designing a file based in iReports:
To run the report: