Rockwell-automation FactoryTalk Historian SE ActiveView 3.2 User Guide Manual do Utilizador Página 77

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 76
3 For Developers: Administering FactoryTalk Historian ActiveView
69
ActiveView Control Events
BeforeConnection Event
This event occurs before a connection to the Historian Server is attempted.
This allows the programmer to alter the user name and password so that
logging into the Server is not apparent to the user. When the call returns,
connection is attempted.
Format
BeforeConnection (myParam as BCParam)
Example
The following is an example of using JavaScript to use the security events:
<html>
<head>
<script language = "VBScript">
Sub window_onLoad()
Pbd1.DisplayURL = "<MyDisplayURL>"
End Sub
</script>
<script id = "clientEventHandlersJS" language = "javascript">
function Pbd1_BeforeConnection(pParam) {
pParam.Username = "MyUserName";
pParam.Password = "MyPassword";
}
</script>
<script language = "JavaScript"
for = "pbd1"
event = "BeforeConnection(pParam)">
Pbd1_BeforeConnection(pParam)
</script>
</head>
<body>
<p>
<object id = "Pbd1"
width = "700"
Vista de página 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 100 101

Comentários a estes Manuais

Sem comentários