Promotic

ConnectionServer - property of the tvTrend object

Description:
Address of the trends server (of the PROMOTIC application) to which the displayed trend is connected.
Syntax:
Variant ConnectionServer
Note:
Property access for read and write. The preset value of this property is defined in the "tvTrend > Data source connection > Server > Address" 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 parameter nType=0.

If the ConnectionType property is 1 (local connection), then the string "local" has to be set into the property.
If the ConnectionType property is 2 (connection to the server of another application), then it is necessary to set into the property the following text: "http://computer/trend, where the computer is usually the name of the remote computer (for the intranet), the trend is the name of trends Web component in the application on the computer computer.
See also:
Example1:
on local connection
JavaScriptVBScriptSelect and copy to clipboard

oTrend.ConnectionServer = "local";
 
on remote connection to the server of another application
JavaScriptVBScriptSelect and copy to clipboard

oTrend.ConnectionServer = "http://computer/trend";
Example2:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
{
var sServer = oTrend.ConnectionServer;
}
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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