ConnectionServer - property of the tvTrend object
Description:
Address of the trend server (of the PROMOTIC application) to which the displayed trend is connected.
Syntax:
Variant ConnectionServer
Note:
Property access
for read and write.
The default 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 the
nType=0 parameter.
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.
Example1:
on local connection
JavaScriptVBScriptSelect and copy to clipboard
oTrend.ConnectionServer = "local";
oTrend.ConnectionServer = "local"
on remote connection to the server of another application
JavaScriptVBScriptSelect and copy to clipboard
oTrend.ConnectionServer = "http://computer/trend";
oTrend.ConnectionServer = "http://computer/trend"