Sanav GC-101 Manuel d'installation Page 41

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 40
11) Creating/Modifying Reports
OpenGTS comes with a very simple and configurable report generation engine. Reports are comprised of 3 main
components: the report layout, the report data iterator, and the report specification XML.
The report specification XML specifies a report data iterator, reporting constraints, and the columns which are to appear
on the report. The report data iterator constructs the data which will be included in the report based on the reporting
constraints. The report data layout then iterates through the report data and generates a report based on the column
formatting information provided by the report specification XML.
The "Report Layout" and "Report Data Iterator" components must be implemented in Java code by a Java
programmer, and should be configurable for a general use. The "Report Specification XML" is a report configuration
text file that specifies the type, columns, and contraints for a specific report. Provided the report layout and data
iterator are implemented for general use, many different kinds of reports may be created that utilize the same layout
and data iterator.
11.1) Report Layout
The Report Layout is a Java module that defines what columns are available for a given report, and their respective
formatting options.
A report layout must extend the abstract Java class "org.opengts.war.report.ReportLayout" and must define a
"DataRow" subclass that understands how to parse report columna/fields from report row objects provided by the report
data iterator.
The class "org.opengts.war.report.event.EventDataLayout" is an example ReportLayout subclass that
defines the available columns and formatting options for the Event Detail and Summary reports.
11.2) Report Data Iterator
The Report Data Iterator is a Java module that constructs the list of records that are to be included in the report based
on the constraints specified in the report specification XML.
A report data iterator must extend the abstract Java class "org.opengts.war.report.ReportData" and provide
implementations for the "getBodyDataIterator" and "getTotalDataIterator" methods. It must also bind to a
specific ReportLayout by providing an implementation for the "getReportLayout" method.
The class "org.opengts.war.report.event.EventDetailReport" is an example ReportData subclass that
generates the Event Detail report.
OpenGTS Configuration and Installation Manual Page 41 of 60
Vue de la page 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 59 60

Commentaires sur ces manuels

Pas de commentaire