Faileddisplayurl event – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual

Page 81

Advertising
background image

3

For Developers: Administering FactoryTalk Historian ActiveView

73

CFParam.
Retry

This parameter specifies an action taken when the event returns. The
possible actions are:

Action

Value

Description

pbConnectRetry

0

Retry connection to Historian Server.

pbConnectDefault 1

Return control to FactoryTalk
Historian ActiveView.

pbConnectFail

2

Fail the connection.

Note: Developers must use the integer values for these
constants or define them within their scripts. These values can

also be looked up in the Visual Basic Object Browser.

CFParam.
MyData

This parameter is reserved for future use.

FailedDisplayURL Event

This event executes whenever the DisplayURL (page 62) property is
changed and the file to which it refers is invalid. This event has no
parameters; however, the host application can always get the current value
of the DisplayURL property. It can also respond to this event by setting the
property to a new URL.

Example

The following sample HTML script demonstrates how the
FailedDisplayURL and FailedServerIniURL (page 75) events can be
used to correct invalid references. When the page is loaded, the Display
URL refers to a file named fee.pdi and an ini file of eenie.ini. If
either of the URLs is invalid, then three additional display and
server.ini URLs are tried. The two URLs are always set in tandem.

<html>
<head>
<script language = "VBScript">
Sub Window_OnLoad

Advertising