Back

Summary report

Ana Escalera, modified 2 Years ago.

Summary report

Youngling Posts: 17 Join Date: 9/13/16 Recent Posts
Dear Forum,

Ive been trying to configure a report module as "SUMMARY" type. This is the configuration i made in the declarations part:

<summaryFormat id="cc">
<map>
<image>
<file>%REGION_HOME%/base/base.png</file>
<width>1059</width>
<height>711</height>
</image>
<x0>5</x0>
<y0>160</y0>
<leftLongitude>-75.61</leftLongitude>
<rightLongitude>-53.91</rightLongitude>
<bottomLatitude>-20.68</bottomLatitude>
<topLatitude>-12.87</topLatitude>
<mapFormat>&lt;div style="TOP:{1, number, #}px;
LEFT:{0, number, #}px;
position:absolute;Z-index:0"&gt;
&lt;img border="0" src="{4}"
width="{1059,number,#}" height="{711, number, #}"
usemap="{5}"&gt;
&lt;/div&gt;</mapFormat>
<overlayFormat>&lt;div style="TOP:{180,number,#}px;
LEFT:{10,number,#}px;
position:absolute;Z-index:1"&gt;
&lt;a&gt;
&lt;img border="0" src="{2}" title="{4}: {3}"&gt;
&lt;/a&gt;
&lt;/div&gt;\n</overlayFormat>
</map>
</summaryFormat>



The input variable:

<inputVariable variableId="aaa" variableType="any">
<timeSeriesSet>
<moduleInstanceId>ImportSEMENA</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.obs</parameterId>
<locationId>SEMENA_Gundonovia</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep id="daily2times"/>
<relativeViewPeriod unit="day" start="-1095" end="-1000"/>
<readWriteMode>read only</readWriteMode>
</timeSeriesSet>
</inputVariable>


And the report part:

<summary id="statusAreaMap" formatId="cc">
<timeSeries thresholdGroupId="Umbrales_Alertas">aaa</timeSeries>
</summary>



Actually the xml. configuration is workinf fine, i have no errors in the xml, my problem is that when i make the module run in FEWS explorer it appears this error:

"2016-10-31 10:59 ERROR - TaskRun.PartlyFailed: Workflow Report with task run id 577' partly failed because activity 'Mamore_Informe3' failed. (Plugin 'Mamore_Informe3' failed, message was: 'Nonexistent definition with id statusAreaMap
ModuleConfigFiles/Reports/Mamore_Informe3.xml)"


I dont know how to fix it. Ive changed the id many times and reviewed it so i dont get an error in the name with a wrong letter etc. but nothing works. Please give me a hand on this! im stuck!
If im wrong in another part of the configuration please let me know!
reports
Ana Escalera, modified 2 Years ago.

RE: Summary report

Youngling Posts: 17 Join Date: 9/13/16 Recent Posts
This is the whole code:

<reports xmlns="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" version="1.0">
<declarations>
<defineGlobal id="Titulo">PRONÓSTICO HIDROLOGICO </defineGlobal>
<defineGlobal id="SubTitulo">Informe Mamore</defineGlobal>
<defineGlobal id="Agency">SENAMHI</defineGlobal>
<defineGlobal id="Agency1">SERVICIO NACIONAL DE METEOROLOGÍA E HIDROLOGÍA</defineGlobal>
<defineGlobal id="tableTitle1">Nivel pronosticado (m)</defineGlobal>
<summaryFormat id="cc">
<map>
<image>
<file>%REGION_HOME%/base/base.png</file>
<width>1059</width>
<height>711</height>
</image>
<x0>5</x0>
<y0>160</y0>
<leftLongitude>-75.61</leftLongitude>
<rightLongitude>-53.91</rightLongitude>
<bottomLatitude>-20.68</bottomLatitude>
<topLatitude>-12.87</topLatitude>
<mapFormat>&lt;div style="TOP:{1, number, #}px;
LEFT:{0, number, #}px;
position:absolute;Z-index:0"&gt;
&lt;img border="0" src="{4}"
width="{1059,number,#}" height="{711, number, #}"
usemap="{5}"&gt;
&lt;/div&gt;</mapFormat>
<overlayFormat>&lt;div style="TOP:{180,number,#}px;
LEFT:{10,number,#}px;
position:absolute;Z-index:1"&gt;
&lt;a&gt;
&lt;img border="0" src="{2}" title="{4}: {3}"&gt;
&lt;/a&gt;
&lt;/div&gt;\n</overlayFormat>
</map>
</summaryFormat>
<dateFormat id="dateFormat1">
<timeZone>
<timeZoneOffset>-04:00</timeZoneOffset>
</timeZone>
<pattern>dd-MM-yyyy HH:mm</pattern>
</dateFormat>
<dateFormat id="dateFormat2">
<timeZone>
<timeZoneName>GMT</timeZoneName>
</timeZone>
<pattern>dd-MM-yyyy HH:mm</pattern>
</dateFormat>
<numberFormat id="numberFormat1">{0,number,###0.00}</numberFormat>
<generatePdf>false</generatePdf>
<templateDir>%REGION_HOME%</templateDir>
<reportsRootDir>$REPORT_FOLDER_ROOT$</reportsRootDir>
<reportsRootSubDir>Pronostico</reportsRootSubDir>
<sendToLocalFileSystem>true</sendToLocalFileSystem>
<timeZone>
<timeZoneOffset>-04:00</timeZoneOffset>
</timeZone>
<locale id="Spanish">
<language>es</language>
<country>co</country>
</locale>
<inputVariable variableId="aaa" variableType="any">
<timeSeriesSet>
<moduleInstanceId>ImportSEMENA</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.obs</parameterId>
<locationId>SEMENA_Gundonovia</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep id="daily2times"/>
<relativeViewPeriod unit="day" start="-1095" end="-1000"/>
<readWriteMode>read only</readWriteMode>
</timeSeriesSet>
</inputVariable>
</declarations>
<!--Bases-->
<report>
<summary id="statusAreaMap" formatId="cc">
<timeSeries thresholdGroupId="Umbrales_Alertas">aaa</timeSeries>
</summary>
<template>Informe_Pronostico3.html</template>
<outputSubDir>Pronostico/</outputSubDir>
<outputFileName>base.html</outputFileName>
<defineLocal id="chartTitle1">Base</defineLocal>
</report>
</reports>