Breadcrumbs

HistoryDisplayName management

Description

The HistoryDisplayName does not exist by default in history extensions. Structure automatically adds a mechanism for managing this history display name on all history extensions (for any driver).

An AdvancedConfig component is added to the HistoryConfig of each history extension. This contains the SFormat historyDisplayName slot.


Implementation

To update the history display name:

  • It is necessary to have an InfoSource in the point (in parallel with the extension)

  • If history is enabled just change the value of the HistoryDisplayName field

  • If history is enabled after the value of the HistoryDisplayName field is changed, it is necessary to initialize the InfoSource for the change to take effect.

The SFormat is resolved relative to the InfoSource.

Ex: To obtain the point's display name (thus the parent of the extension), just specify %parent.displayName% or {parent.%displayName%}

Ex: to get the value of a tag from the source like b:building, specify {parent.tag('b:building')}

 

image2018-3-2 18:3:59.png