sID | (String) Must be empty string "" (reserved for the identifier of the trend server) must be entered obligatorily |
---|---|
sPurpose | (String) One of the two possible values must be entred.
"pmtrendserver" - Registration of the server into the server list in the viewer. This list of accessible servers is then displayed if the user dynamically adds new trend to the viewer in runtime. See methods for displaying the configuration of trends in the viewer: DlgTrends, tvTrend.DlgProperties.
"cfg" - Configuration server registration for this trend viewer. When calling the LoadCfg method with sCfg="input:xxx" parameter, the configuration groups transferred from this server are added into the group configuration window. |
sTitle | (String) User name of the server. This text is displayed to the user. |
sAddress | (String) Server address. The same text as the vServer parameter of the tvTrend.Connect method. For example "http://computer/syst/trend/local". |
sUser | [optional] (String) Authorized user. Enter only if the server requires the authentication of the permissions. See the "PmaTrendGroup > Permissions" tab. |
sPassword | [optional] (String) User password. Enter only if the server requires the authentication of the permissions. |
var oTView = pMe.Items("../TrendView");
// access needn't be authenticated
oTView.AddServer("", "pmtrendserver", "MySrv", "http://192.168.1.34/syst/trend/local");
// access must be authenticated
oTView.AddServer("", "pmtrendserver", "MySrv", "http://192.168.1.34/syst/trend/local", "admin", "password");