Cfparam – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual
Page 80

●
●
●
●
●
FactoryTalk Historian ActiveView User Guide
72
</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
</script>
<script language = "VBScript">
Sub Pbd1_ConnectionFailed(pParam)
pParam.Username = "MyUserName"
pParam.Password = "MyPassword"
End Sub
</script>
CFParam
This object is passed to the container as a parameter to the
ConnectionFailed event. The CFParam object is then used to read and
update the parameters.
JavaScript cannot take simple types by reference as parameters. The
CFParam object is used as a workaround to this issue.
CFParam.
Server
Server is a string that represents the server name. This parameter can
only be read.
CFParam.
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.
CFParam.
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.
CFParam.
ConnectString
This parameter is reserved for future use.