Promotic

Color - property of the ExtTrend object

Description:
Color of displayed variable.
Syntax:
String Color
Note:
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
Example1:
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;
Example2:
The example of obtaining this property by Macro expression from another data extension via pVar variable.

History:
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.