Color - property of the ExtTrend object

Color of displayed variable.
String Color
Property access for read and write. The preset value of this property is defined in the "Color" configurator of this object.
The property returns or sets the RGB String in the form "#RRGGBB".
The value entered here is used as initialization value for the trend viewer (for the PmgTrendViewer object). The value is entered in the following property: tvGraph.Color
Examples of obtaining this property in the script.
color setting by RGB String in the form "#RRGGBB"
JavaScriptVBScriptSelect and copy to clipboard

sColor = pMe.Pm("/data/#vars/Temperature/#ext/trend").Color;

// or
sColor = pMe.Pm("/data/#vars/Temperature").Extension("trend").Color;

// or
sColor = pMe.Pm("/data").Item("Temperature").Extension("trend").Color;
The example of obtaining this property by Macro expression from another data extension via pVar variable.

Pm8.03.00: Created
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.