Versions Compared

Key

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

...

Code Block
languagexml
titleValue Properties Entry Display Elements
	<valueProperty id="fw_state" name="State" propertyType="string" enabled="false" forceUpperCase="false" width="60">
		<defaultValueAttributeFunction>@REGION@</defaultValueAttributeFunction>
	</valueProperty>
	<newLine/>
	<valueProperty id="fw_subtitle" name="Sub-title" propertyType="string" enabled="true" numberOfLines="1" width="805"/>
	<newLine/>
	<valueProperty id="fw_headline" name="Headline" propertyType="string" enabled="true" forceUpperCase="true" numberOfLines="2" width="800"/>>
	</variable>
	<valueProperty id="fw_nextissuetime" name="Next Issue Time" propertyType="dateTime" enabled="true" width="200"/>
	<valueProperty id="fw_nexthours" name="Hours from now" propertyType="int" enabled="true" width="50"/>
	<valueProperty id="fw_sews" name="Sews" propertyType="string" enabled="true" width="60">
		<enumerationValue label="Yes" code="Yes"/>
		<enumerationValue label="No" code="No"/>
	</valueProperty>

Below is an example shown on how to configure a table with sub locations.

It has to refer to an sub locations structure via <subLocationsStructureId>

Separate columns can be defined like an attributeColumn which shows the value of that attribute for the location of the row

Time series columns which show either a value of a time of a time series for that locations. Multiple options can be chosen for what to show, like lastValue or lastTime. A variableId must be configured to refer to time series.

There are also specialValuePropertyColumn's which have more dedicated functionality for instance a special with type="defaultText" can have text in which value properties (with their id between %%) for that location  can be automatically replaced

Code Block
languagexml
titleValue Properties Entry Display Sub Locations Table
	<subLocationsTable id="Locations_Level">
		<subLocationsStructureId>Locations_Level</subLocationsStructureId>
		<attributeColumn id="fwloc_order" width="40" name="Order" attributeFunction="@FWL_DISP_ORDER@"/>
		<attributeColumn id="fwloc_name" width="200" name="Location Name" attributeFunction="@station:SHORT_NAME@"/>
		<timeSeriesColumn id="fwloc_obstime" valuePropertyId="Observation_Time" variableId="Observations" width="140" columnContent="lastTime" name="Observed_Time"/>
		<timeSeriesColumn id="fwloc_obsvalue" valuePropertyId="Observation_Value" variableId="Observations" width="80" columnContent="lastValue" name="Observation_Value [m]"/> 
		<specialValuePropertyColumn id="fwloc_defaultText" name="Default_text" width="200" type="defaultText" valuePropertyId="default_text">
			<defaultText>This location has observed serverity '%obs_severity%' and forecast severity '%forc_severity%'</defaultText>
		</specialValuePropertyColumn>
	</subLocationsTable>