retrievalStyle XML element
- Last UpdatedJul 18, 2024
- 2 minute read
The retrievalStyle element represents single retrieval style. It is the container for two other elements:
-
styleName: Specifies the name of the style for the locale specified by the locale attribute. This is the name by which you can access the style when the Trend application runs under the specified locale.
You can specify the locale as a two-character ISO language code or a four-character combination of language code and country code. If you specify a name for a two-character locale, it is used for all sub-locales that do not have a separate name defined. For example, if you specify a name for the de locale, it is used for the de-DE, de-AT and de-CH locales unless you specify separate names for those locales.
You must specify a styleName element for all styles that you want to use in a given locale. If a style does not have a name defined for a locale, the Trend application does not show it when running under that locale. The only exception is when you run the Trend application under a locale for which no style names are defined at all. In that case, the styles are shown with their names for the en locale.
-
duration: Specifies a duration range. For more information, see duration XML Element.
It has three required attributes:
-
server: Specifies the server type for which the style can be used. Always set this attribute to InSQL.
-
minVersion: The minimum Historian version that the retrieval style can work with, either 8.0 or 9.0. If the Trend application is connected to a Historian whose version is lower than the version specified here, the style is not used.
Specify 9.0 if your style uses functionality that is not supported for AVEVA Historian 8.0.
-
enabled: Specifies whether the style is active. To temporarily disable the style, set this attribute to false.
It has one optional attribute:
-
maxVersion: The maximum Historian version against which the retrieval style can be used. This attribute is not currently used.