Promotic

ConnectionUser - property of the tvTrend object

Description:
User defined in trend server (in the PROMOTIC application) this trend viewer connects to.
Syntax:
String ConnectionUser
Note:
Property access for read and write. The default value of this property is defined in the "tvTrend > Data source connection > Server > User" 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 a user is defined in this property, that is not defined in the trends server (see the "Trends" configuration window), then the access to this server is refused to all requests to any data.

If the ConnectionType property is 1 (local connection), then permissions are not checked (see the "PmaTrendGroup > Permissions" tab) and the local server is always connected when calling the Connect.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

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