Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual
Page 72

●
●
●
●
●
FactoryTalk Historian ActiveView User Guide
64
Examples
The following examples are written in VBScript. To use, insert each
example code after the <HTML> tag in the following HTML code.
<HTML>
'Insert the code from all three examples here.
<object id = "pbd1"
classid = "clsid:4F26B906-2854-11D1-9597-
00A0C931BFC8"
height = "300"
width = "400">
</object>
<p>
<input id = "btnGetDisplayURL"
type = "button"
value = "Get DisplayURL"
title = "This property specifies the location of the
FactoryTalk Historian ProcessBook Display file. It can be set
to a URL string. The URL string should not contain any escape
characters. HTTP or FTP protocols (services) are supported.
You can also use a UNC path or a local path to a display. For
the UNC and local paths, the protocol prefix file: is
optional.">
<input id = "txtDisplayURL"
size = "64"
value = "DisplayURL">
<input id = "btnSetDisplayURL"
type = "button"
title = "To set the display URL: MyControl.DisplayURL
= http://www.MyServer.Com/MyDisplay.pdi">
</p>
</html>
Example 1 gets the DisplayURL 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 strCurServerINIURL > "" Then
txtServerINIURL.value = strCurServerINIURL