Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since 2013_01 it is possible to create reports of the Schematic Status Display in the form of animations in the formats Avi and animated gif as well as snapshots in the form of Png files and Svg files.
For this purpose there will probably already be some Schematic Status Display configuration in the DisplayConfigFiles of the configuration. In order to create a report of this Schematic Status Display, most elements of this configuration can be copied manually to the reports configuration file.

Unfortunately, the definitions of the date format and number format cannot be copied directly to the report configuration since they have a slightly different format.

Schematic status display configuration

...


	<dateFormat id="DF1">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>dd-MM-yyyy</dateTimePattern>
	</dateFormat>
	<dateFormat id="DF2">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>HH:mm</dateTimePattern>
	</dateFormat>
	<dateFormat id="DF3">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>dd-MM-yyyy HH:mm</dateTimePattern>
	</dateFormat>
	<numberFormat id="NF1">
		<pattern>{0,number,##0.00}</pattern>
	</numberFormat>

An example Schematic status Display that contains the following configuration,

Code Block
xml
xml

	<dateFormat id="DF1

Reports declarations section:

Code Block
xmlxml

	<dateFormat id="DF1">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>dd-MM-yyyy</pattern>
	</dateFormat>
	<dateFormat id="DF2">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>HH:mm</pattern>
	</dateFormat>
	<dateFormat id="DF3">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>dd<dateTimePattern>dd-MM-yyyy HH:mm</pattern>yyyy</dateTimePattern>
	</dateFormat>
	<numberFormat id="NF1">
		<pattern>{0,number,##0.00}</pattern>
	</numberFormat>

must be transferred to the report declarations. The definitions of the date format and number format cannot be copied directly to the report configuration since they have a slightly different format.

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<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="ForecastingRegion">IWP-Twentekanalen</defineGlobal>
		<dateFormat id="dateFormat1DF1">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>dd/MM/yyyy HH:mm z<-MM-yyyy</pattern>
		</dateFormat>		
		<numberFormat id="NF1">{0,number,##0.00}</numberFormat>
		...
	</declarations>
	<report>	
...
// Add Ssd report elements here for generating Avi, Gif, Png or Svg.		
...
	</report>
</reports>

Schematic Status Display - Avi

...