L-VIS User Manual
174
LOYTEC
Version 6.2
LOYTEC electronics GmbH
Now the text color is changed to blue in the instance of A. This change is stored
together with the instance of A, so the pen symbol now also appears on the tree
icon of instance A.
When this instance is updated in the future, the original text control will first
have its color changed to red, based on the change stored with the sub instance of
B, and then further to blue, based on the change stored with the top level instance
of A. The text control appears in blue.
If changes on different levels are not overlapping, e.g. are not changing the same property
of the same object, they apply independent of each other. For example, if the local change
on instance A sets the background color instead of the text color to blue, the text will
appear red due to the change in instance B and the background will appear blue due to the
change in instance A.
NOTE:
The change done to the text color on the instance of B in template A can only be removed
there, in template A, not in the instance of template A. The command
Restore defaults
has to
be called on the instance of B in template A.
9.15.9 Base Path Placeholder Tags
To minimize the need for local changes of a template instance, information from the data
point base path settings of the instance can be used when designing the template. Special
placeholder tags allow the designer of a template to access the individual components of the
four data point base paths and use them for example to change the contents of a text control
or to modify the target of a show page action. This may eliminate the need to apply such
changes to each instance manually. The data point base paths need to be set up anyway.
A placeholder tag starts with the special character sequence
${
, followed by the index of the
base path to use (
b1
to
b4
), optionally followed by the path component to use (
f1
is the
right-most path component, with higher indices moving up in the path hierarchy), and a
closing brace
}
at the end.
For better understanding, the following section lists a few examples of possible placeholder
tags and the resulting replacement when the template is instantiated. All examples assume a
template instance with the first two data point base paths filled in like this:
1.
L-Vis/Register/Floor1/Room101
2.
L-Vis/Trend/HVAC/South-Wing
Base paths 3 and 4 may be used as well, but for the purpose of this illustration, we will only
work with the first two of the four base paths. Possible placeholders and their result:
${b1}
Room101
${b1f1}
Room101
${b1f2}
Floor1
${b2} - ${b1}
South-Wing – Room101
${b2} - ${b2f2} ${b2f3}
South-Wing – HVAC Trend
Placeholder tags are currently accepted at the following locations:
Text Control:
The text field of a text control may contain placeholder tags. Note
that you will want to turn off the
Auto-Resize
option and make sure the text field
is wide enough to hold the replacement text, which depends on the data point
path names assigned to the template instance later on. Also note that placeholder