Bcparam – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual

Page 78

Advertising
background image

FactoryTalk Historian ActiveView User Guide

70

height = "510"
classid = "CLSID:4F26B906-2854-11D1-9597-
00A0C931BFC8">
</object>
</p>
</body>
</html>

The following example uses the events with VBScript. To use, replace the
code between the <head> and </head> tags above with the following code:

<script language = "VBScript">
Sub window_onLoad()
Pbd1.DisplayURL = "<MyDisplayURL>"
End Sub
Sub Pbd1_BeforeConnection(pParam)
pParam.Username = "MyUserName"
pParam.Password = "MyPassword"
End Sub
</script>

BCParam

This object is passed to the container as a parameter to the
BeforeConnection event. The BCParam object is then used to read and
update the parameters.

BCParam.Server

Server is a string that represents the server name. This

parameter can only be read.

BCParam.Username

Username is a string that represents the user that is trying to
log on to the server. The value is initialized to the user

logging on and can be modified.

BCParam.Password

Password is a string that represents the password for the user

trying to log on to the server. The value is initialized to the
user's password logging on and can be modified.

BCParam.ConnectString

This parameter is reserved for future use.

BCParam.MyData

This parameter is reserved for future use.

Advertising