ConnectionUser - property of the tvTrend object
User defined in trend server (in the PROMOTIC application) this trend viewer connects to.
Property access for read and write
The preset 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 parameter nType=0
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
var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
oTrend.ConnectionUser = "oper";