ConnectionUser - property of the tvTrend object

User defined in trend server (in the PROMOTIC application) this trend viewer connects to.
String ConnectionUser
Property access for read and write. The preset value of this property is defined in the "Data source connection > Server > User" configurator of this object.
After writing into this property, it is necessary to call the Connect method with parameter nType=0.
If a user is defined in this property, that is not defined in the trends server (see the "Trends" tab), 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 on calling the Connect.
See also:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
oTrend.ConnectionUser = "oper";
PROMOTIC 9.0.15 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