Serveriniurlisvalid property – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual

Page 76

Advertising
background image

FactoryTalk Historian ActiveView User Guide

68

</P>
</HTML>

Example 1 gets the ServerINIURL property from the control.

<script language = "VBScript">
Sub btnGetServerINIURL_onclick()
Dim strCurServerINIURL, strNewServerINIURL
'Get the Current ServerINIURL from the ActiveView
Control
strCurServerINIURL = trim(pbd1.ServerINIURL)
If len(strCurServerINIURL) > 0 Then
txtServerINIURL.value = strCurServerINIURL
Else
txtServerINIURL.value = "Current Server INI URL
is not set"
End If
End Sub
</script>

Example 2 sets ServerINIURL with a string from the text area. The login
information in the Web file is merged with existing information on the
user's PC.

<script language = "VBScript">
Sub btnSetServerINIURL_onclick()
Dim strCurServerINIURL, strNewServerINIURL
'Get the Current ServerINIURL from the ActiveView
Control
strCurServerINIURL = pbd1.ServerIniURL
'New ServerINIURL is in the textarea.
strNewServerINIURL = trim(txtServerINIURL.value)
If strNewServerINIURL > "" _
and strNewServerINIURL <> strCurServerINIURL then
pbd1.ServerINIURL = strNewServerINIURL
End If
End Sub
</script>

ServerIniURLIsValid Property

This read-only, Boolean property indicates whether the specified location
of a pilogin.ini file that contains PI Server information is valid.

Advertising