Sanav GC-101 Manuel d'installation Page 42

  • 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 41
11.3) Report Definition XML
The file "report.xml" defines the html style used for a column defined in a ReportLayout. If also defines specific
reports by specifying which ReportData iterator, and which columns will be included in a given report. It also specifies
the constraints that are to be applied to the data which the report will contain.
Here is an example report definition from the 'report.xml' file for the "Event Detail" report:
<!--
=== The 'name' provides a name for the report, referenced in 'private.xml'
=== The 'type' provides a report group name, referenced in 'private.xml'
=== The 'class' specifies the report data iterator used to generate the report
-->
<Report name="EventDetail" type="device.detail"
class="org.opengts.war.report.event.EventDetailReport">
<!-- The description of the report display on the reporting menu -->
<MenuDescription i18n="ReportsXML.eventDetail.menu">
Event Detail
</MenuDescription>
<!-- The title displayed above the report -->
<Title i18n="ReportsXML.eventDetail.title">
Event Detail
</Title>
<!-- The subtitle displayed above the report -->
<Subtitle i18n="ReportsXML.eventDetail.subtitle">
${deviceDesc} [${deviceId}]\n${dateRange}
</Subtitle>
<!-- The columns included in the report -->
<Columns>
<Column name="index" />
<Column name="date" />
<Column name="time" />
<Column name="statusDesc" />
<Column name="latitude" arg="5" />
<Column name="longitude" arg="5" />
<Column name="speedH" arg="1" />
<Column name="altitude" />
<Column name="odometer" arg="0" />
<Column name="address" />
</Columns>
<!-- The report data constraints -->
<Constraints>
<SelectionLimit type="first">1000</SelectionLimit>
<ReportLimit>1000</ReportLimit>
<OrderAscending>true</OrderAscending>
</Constraints>
<!-- the map icon selector (if map display is enabled) -->
<MapIconSelector ruleFactoryName="CustomRulesEngine">
<!-- this section requires an installed "RuleFactory" implementation -->
<![CDATA[ ((mph<4)?"reddot":(speed<15)?"yellow":"heading") ]]>
</MapIconSelector>
</Report>
OpenGTS Configuration and Installation Manual Page 42 of 60
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 59 60

Commentaires sur ces manuels

Pas de commentaire