Failedserveriniurl event, Readystatechange event – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual

Page 83

Advertising
background image

3

For Developers: Administering FactoryTalk Historian ActiveView

75

FailedServerIniURL Event

This event is executed whenever the ServerIniURL (page 66) 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 ServerIniURL property. It can also respond to this event by setting
the property to a new URL.

Example

See FailedDisplayURL (page 73).

ReadyStateChange Event

When the control is initially constructed, its state is Loading. Once its
window is created, it enters an Interactive state. When it completes the
display of a Display Document or fails to find the display, it enters the
Ready state.

Each state transition triggers the ReadyStateChange stock event.

Format

ReadyStateChange (nReadyState as pbReadyStateEnum)

Example

Sub Pbd1_ReadyStateChange(nReadyState)
Const pbReadyStateLoading = 1
Const pbReadyStateInteractive = 3
Const pbReadyStateComplete = 4
Dim myTime, myValue, myStatus
If Pbd1.ReadyState = pbReadyStateComplete Then
Pbd1.Display.Trend.CurrentTrace = 1
myValue = Pbd1.Display.Trend.GetValue(myTime,
myStatus)
'now you can do something here with this value, time
and status
End If
End Sub

Advertising