|
Record Editor |
|||||||||||
The RecordEditor is a data file editor for Fixed Width, Delimitied Datafiles. It Stores File Layouts in a Database. This package can use RecordEditor File layouts to build reports.
As for all the interfaces, there is both a IReportConnection (IReport Specific) and JRDataSourceProvider (Generic designer) interfaces.
If using iReports, for RecordEditor Reports, you should use the RecordEditor Connection class, This can be selected in the connection Combo:
The RecordEditor interface does support multiple records in a file at present.
One of the easiest ways to get started is to use IReports Report Wizard. To do this:
then click on the next button
Field | Description |
File | Data file to be used in the report. |
Record Layout | RecordEditor Layout Definition |
Define fields as numeric | Old field |
Report Record | Primary report record. When this record comes up, data will be passed back to Jasper Reports Typically it will be the main detail line of the report. |
Record | Records to be used in the Report |
Note: Make sure that you have RecordEditor Connection selection
To create a report from scratch
Field | Description |
File | Data file to be used in the report. |
Record Layout | RecordEditor Layout Definition |
Define fields as numeric | Old field |
Report Record | Primary report record. When this record comes up, data will be passed back to Jasper Reports Typically it will be the main detail line of the report. |
Record | Records to be used in the Report |
The generated report may look something like this:
I also supply the RecordEditor provider class net.sf.FFReport.Provider.RecordDataSourceProvider , this implements the standard jasper reports Design interface (JRDataSourceProvider). You should be able to use this class in any Jasper Report Designer that supports this interface. In iReports you are better off using "Cobol Connection" but if you wish to use it in iReports.
The class net.sf.FFReport.Provider.RecordDataSourceProvider implements JRDataSourceProvider and acts as the interface between iReports and the RecordDataSource (file based data source for a report).
Steps:
Note: The class name is net.sf.FFReport.Provider.RecordDataSourceProvider
First you need to create a report (File >>> New), then
Field | Description |
File | Data file to be used in the report. |
Record Layout | RecordEditor Layout Definition |
Define fields as numeric | Old field |
Report Record | Primary report record. When this record comes up, data will be passed back to Jasper Reports Typically it will be the main detail line of the report. |
Record | Records to be used in the Report |
| FFReport at SourceForge | Download Page | Forums |