Wiki Markup |
---|
{note:title=Notice}
This page is still under construction
{note}
h3. Moduledescriptor
Make sure the report class is registered. This can be done in the file Moduledescriptors.xml. It is possible that this class is already registered.
{code:XML}
<moduleDescriptor |
Note |
---|
|
This page is still under construction |
Moduledescriptor
Make sure the report module is registered.
...
...
<description>Reports</description> |
...
<className>nl.wldelft.fews.system.plugin.report.ReportController</className> |
...
</moduleDescriptor>
{code}
The ID we give to the class is "Reports"
h3. Set-up report module instance
For each report we want FEWS to generate, a separate module instance is created. Each module instance for reporting is saved in the folder "ModuleConfigFiles". In this example we create the file "Create_Report.xml". We start with the next lines:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<fews:reports version="1.0" xmlns:fews="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/reports.xsd">
<fews:declarations>
<fews:templateDir>d:\FEWS\ISA_HW_sa\report\</fews:templateDir>
<fews:reportsRootDir>d:\FEWS\ISA_HW_sa\report\</fews:reportsRootDir>
<fews:sendToLocalFileSystem>true</fews:sendToLocalFileSystem>
</fews:declarations>
<fews:report>
<fews:template>doc1.htm</fews:template>
<fews:outputFileName>report.html</fews:outputFileName>
</fews:report>
</fews:reports>
{xml}
|