Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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/sets the RGB String in the form "#RRGGBB".

The value entered here is used as initialization value for 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.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice