Promotic

ConnectionGroup - property of the tvTrend object

Description:
Group identifier (of the PmaTrendGroup object) in trend server (in the PROMOTIC application) that the trend viewer connects to.
Syntax:
String ConnectionGroup
Note:
Property access for read and write. The default value of this property is defined in the "tvTrend > Data source connection > Group" configurator of this object.
 
This property is also functional in Web panels.
 
After writing into this property, it is necessary to call the Connect method with the nType=0 parameter.

If the ConnectionType property is set to 1 (local connection) or 2 (remote connection), then the value of this property must be set, for example, to string "group1", where group1 is a value defined in the "PmaTrendGroup > Trend > Trend group identifier" configurator.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
{
var sGroup = oTrend.ConnectionGroup;   // Reading from the property
// or
oTrend.ConnectionGroup = "GroupX";   // Writing into the property
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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