I want to use a multi state symbol for navigating between the processbook screens. How can I do the same using vba?
This is not out of box functionality in PI ProcessBook. Why is this important to you?
I just wanted to drill down on the multi state symbols (configured as alarms) so that I can land on another processbook page that shows more details on the conditions the alarms are configured around. Hope this helps.
At its simplest you would add a Symbol, e.g. Rectangle, set the Multistates, then hook into the Click event with something like:
Private Sub Rectangle1_Click(ByVal lvarX As Long, ByVal lvarY As Long)
Dim ms As MultiState
Set ms = Rectangle1.GetMultiState
Select Case ms.CurrentState
Case 0: Call Application.Displays.Open("AllIsOkay.pdi", True)
Case 1: Call Application.Displays.Open("AllIsNOTOkay.pdi", True)
Case 2: Call Application.Displays.Open("UhOhAlarm.pdi", True)
Set ms = Nothing
I like your landing display names
Retrieving data ...