Documentation Vision Library+ Documentation

Vision Library+ / Event Frames

Event Frame Form+

Event Frame Form+ shows each event frame of a search as a card. Operators open a card, update the event's attributes with the control that fits each data type, and save the changes to AF without leaving the display.

Overview

Event Frame Form+ shows each event frame of a search as a card. Operators open a card, update the event's attributes with the control that fits each data type, and save the changes to AF without leaving the display.

Event Frame Form+ with one expanded card above four collapsed cards

Watch the demo

See Event Frame Form+ in a practical PI Vision workflow.

When to use it

Use this symbol when you need to:

  • Let operators complete an event record, such as a production log entry, by filling in attributes of the event frame.
  • Give each attribute the control that fits it: text box, number box, slider, drop-down list, buttons, switch, or date and time.
  • Mark attributes as required or read-only, and rename them in your site's words.
  • List events by start time or by an attribute, and show the properties that matter in each card header.
  • Acknowledge an event, copy it, split it, or open its details from the card.

Choose Events Table+ to compare many events side by side, or to create and delete event frames. Choose Manual Input Form+ to enter values for PI Points or attributes of an asset instead of an event frame.

Before you begin

  • Event frames must exist in AF, and the operators must be allowed to read them. Operators who save need write permission on the event frames and on the PI Points behind the attributes.
  • An attribute can be edited when it is a plain attribute or a PI Point attribute. Attributes with another data reference, such as a formula, are shown as Read Only.
  • For the Automatic field source, set Manual Data Entry on the attributes of the event frame template that operators should fill in.
  • Important: Save, Acknowledge, Copy Event and Split Event write to AF and cannot be undone from the symbol. Test them on a non-production event first.

Add and set up the symbol

  1. In the PI Vision navigation bar, open Events, and select Event Frame Form+ in the symbol list (1).
  2. Select Edit Search Criteria (2), choose the database and the event type under Event Type and Attribute Value, and select Apply.
  3. Drag one or more attributes of an event frame (3) onto the display. Each event frame of the search becomes a card, and the dragged attributes become its fields.
  4. Select a card header to expand the card.
The Events pane with the symbol list, Edit Search Criteria and the attribute list marked
Search Criteria with the event type selection and Apply marked

The expanded card shows the dragged attributes. Each uses the control of its data type: a text box for text, a drop-down list for an enumeration with several states, buttons for an enumeration with up to three states.

An expanded card with a text box, a drop-down list and two button groups

To change the search later, right-click the symbol and select Search Criteria.... By default Time Range follows the display time range.

Common tasks

Update an event's attributes

Use this to complete or correct an event record. Nothing is written until the operator saves.

  1. Select the card header to expand the card.
  2. Change the values: type in the text and number boxes, choose a state, or set the date and time.
  3. Check the Unsaved badge (1) and the marks on the edited fields (2).
  4. Select Save (3) to write all edited fields of this card to AF, or Revert (4) to discard them.
A card with two edited fields, the Unsaved badge, Save and Revert

Revert puts the original values back and removes the badge. After a successful save, the badge changes to Saved. If the write fails, the card shows Save Failed and the message under the buttons.

Save writes only this card. Other cards with unsaved edits keep them.

To record who changed an event and why, turn on change tracking:

  1. Right-click the symbol, select Configure Event Frame Form..., and open Change Tracking.
  2. Set Log Changes (1) to ON.
  3. Set Ask for Reason (2) to Optional or Required.
Change Tracking with Log Changes on and Ask for Reason set to Required

When the operator selects Save, the Record the change dialog lists each change with its old and new value (1). The operator types the reason (2) and selects Save (3). With Required, Save stays unavailable until a reason is entered. Cancel writes nothing and keeps the edits.

The Record the change dialog listing two changes, with a reason typed

Each save writes one annotation to the event frame, with the user name and time of the save:

Reason for change: Rejects recounted at end of shift
Rejected Units: 57 -> 62
Log Type: Information -> Maintenance

The annotations appear on the Comments tab of Event Details and in PI System Explorer. Operators need permission to annotate the event frame. Edits made outside this symbol, for example in PI System Explorer, are not logged.

Choose and rename the fields

Use this to show only the attributes operators fill in, in your words.

  1. Right-click the symbol and select Configure Event Frame Form....
  2. Under Event Frame Fields, set Field Source to Configured (1).
  3. Select a field in the list (2). Use the arrow buttons to reorder it. To remove it, select the delete button (3).
  4. To rename it, set Custom Label (4) to ON and type the label (5).
Event Frame Fields with the field list, delete button and Custom Label marked

To add a field, drag another attribute onto the symbol. The cards show the fields in the list order.

A card without the removed field, and with the renamed field Units rejected

With Automatic, the fields are the attributes marked Manual Data Entry for each event's template, and the per-field settings are not available.

Choose how a field is edited

Use this when the automatic control does not suit the field, for example a drop-down list for a long list of states, or a dialog.

  1. Under Event Frame Fields, select the field (1).
  2. Set Control Type (2) to the control you want. The list offers only the controls that fit the data type.
The field list with Log Type selected and Control Type set to Dialog

With Automatic, an enumeration uses buttons for up to three states, a drop-down list for up to ten, and a dialog for more. With Dialog, the field is a button that opens the list of states. The operator selects a state and then Apply.

The Log Type dialog listing the states with Clear, Apply and Cancel

Mark a field required or read-only

Use this to make sure operators fill in a field, or to show a value they must not change.

  1. Under Event Frame Fields, select the field (1).
  2. To lock it, set Allow Edit (2) to OFF.
  3. To require it, set Required (3) to ON.
Event Frame Fields with Allow Edit and Required marked

A required field shows a red asterisk after its label. A locked field shows its value in a gray box, with Read Only after the label.

A card with the required Action Taken field and the read-only Operator Name field

When an operator selects Save, an empty required field is marked Required and the card is not saved. The card shows Correct the invalid fields before saving. Required needs the Configured field source.

Order the cards and choose the header

Use this to put the events operators need first, and to show the properties they scan for.

  1. Right-click the symbol, select Configure Event Frame Form..., and open Card Options > Sorting.
  2. Set Sort by (1) to an event property or an attribute, and Sort Order (2) to Descending to list the newest first.
  3. Open Header. Choose a property or attribute in the list (3) and select Add.
  4. Select the new header item and set Display (4) to Text or Badge.
Sorting and Header in Card Options with the four settings marked

Events without a value for the sort field come last. Every card shows the new header item, here Log Type as a badge.

Cards sorted by start time with the newest first and a Log Type badge in each header

Add event actions to the cards

Use this to let operators acknowledge, copy, split or inspect an event from its card.

  1. Right-click the symbol, select Configure Event Frame Form..., and open Quick Actions.
  2. Set Acknowledge (1), Copy Event (2), Split Event (3) and Event Details (4) to ON, as you need them.
Quick Actions with the four toggles marked

Select the menu button at the right of a card header to open the action menu. It lists only the enabled actions.

The action menu of a card with Copy Event, Split Event and Event Details marked

Copy Event opens a dialog for the new event. Check Name, Start Time and Severity, select Copy Attribute Data to take the attribute values along, and select Save to create the event. Event Details opens a window with the Details, Attributes and Comments tabs, where Edit changes the event; with Log Changes on, those saves are logged too.

The Copy dialog for the event Filler 1 label jam

Acknowledge is a button in the card header. It appears only on events that can be acknowledged, and it is disabled once the event is acknowledged. Copy Event and Split Event ask the operator to save or revert the card first.

Use the symbol

Event Frame Form+ with numbered callouts
What it shows
(1)The colored edge repeats the severity of the event.
(2)The arrow and the name. Select the header to expand or collapse the card.
(3)Severity badge. The header can show other properties and attributes too.
(4)Start and End. In Progress means the event is still open.
(5)The action menu, and the Acknowledge button when it is on.
(6)Save and Revert. Both are dimmed until a field changes.
  • Edit and save. An edited field is marked, an Unsaved badge appears next to the name, and Save and Revert become available. Save writes to AF.
  • Pause while editing. While any card has unsaved edits, the list stops refreshing. It reloads after the edits are saved or reverted. PI Vision warns when you leave the display with unsaved cards.
  • Header badges. Saving..., Saved, Save Failed and Warning (the values were saved, but capturing the event failed) show the result of a save.
  • Cards that cannot be edited. An event whose template has no editable attributes shows No data-entry attributes are available for this event.
  • No events. The symbol shows No events found. Change the time range or the search criteria.
  • Child events and comments. When they are on, child events appear as cards inside their parent card, and a comment button in the header shows the number of comments.

Configure the symbol

Right-click the symbol and select Configure Event Frame Form.... The pane has the groups Event Frame Fields, Quick Actions, Card Options, Interactivity, Change Tracking and Style. The right-click menu also offers Search Criteria..., and Add Multi-State... (Configure Multi-State... once it is set) when Field Source is Configured and the list has fields.

Event Frame Fields

SettingWhat it does
Field SourceAutomatic shows the attributes marked Manual Data Entry for each event's template. Configured shows the fields you dragged onto the symbol, in the order of the list. Dragging an attribute switches to Configured.
Custom LabelReplaces the field name with your text. Available when Field Source is Configured. See Choose and rename the fields.
Control TypeThe editor of the field: Automatic, Text or Text Area, Number or Slider, Checkbox, Switch or Buttons, Select, Dialog, or Date Time, depending on the data type. See Choose how a field is edited.
Off Text, On TextThe captions of a Boolean field. Available for the Switch and Buttons controls.
State namesOne text box per state of an enumeration, to show another name than the AF state. The stored value does not change.
Limit Mode, Step Size, Min, MaxThe range and step of a slider. Database takes the range from the attribute, Custom from Min and Max. Available for Slider.
Allow EditTurns editing of the field off to make it read-only. See Mark a field required or read-only.
RequiredAn operator must fill in the field before the card can be saved.
Show UnitsShows the unit of the attribute after the label.
Save TimestampThe time a PI Point value is written at: Start of the event, or End. For an open event, End writes at the time of saving.

The reorder and delete buttons under the list apply to the selected field.

Quick Actions

SettingWhat it does
AcknowledgeShows the Acknowledge button on events that can be acknowledged. It writes the acknowledgement to AF.
Copy Event, Split Event, Event DetailsAdds the action to the menu of each card. See Add event actions to the cards.

Card Options

SettingWhat it does
Event HierarchyShows child events as cards inside their parent card.
CommentsShows a comment button with the number of comments in each header. It opens the comments of the event.
Prev. ValueOff: a PI Point attribute value recorded before the event started or after it ended shows as empty. On: the last known value is shown.
Sort by, Sort OrderThe order of the cards, and of child cards. Default order lists the events by start time, oldest first. Sort Order is available when Sort by is set. See Order the cards and choose the header.
Start ExpandedOpens the cards when they load.
DensityComfortable or Compact. Compact shortens the card headers so more events fit.
Field WidthThe width of a field column, 160 to 600 px.
Severity AccentColors the left edge of the card with the severity.
Show LabelsShows the name of each header item before its value.
Missing ValuesHide drops a header item that has no value. Show Placeholder keeps it.
Header list, Add, DisplayThe header items of a card. Choose an event property (name, severity, template, status, start, end, duration, acknowledged, child events, referenced element, description, reason) or an attribute, and show it as Text or Badge.

Interactivity, Change Tracking and Style

SettingWhat it does
FilteringThe symbol receives Master and Linked filters. Under Input, map a channel to a property of the event frame. The cards update without a new search. If a card has unsaved edits, the update waits until it is saved or reverted. The symbol does not publish filters. See Filtering dashboards.
Log ChangesOff by default. On: each save of a card writes one annotation to the event frame that lists every changed field with its old and new value. See Update an event's attributes.
Ask for ReasonNone saves without asking. Optional opens the Record the change dialog, where the reason can stay empty. Required keeps the dialog's Save unavailable until a reason is entered. Available when Log Changes is on.
Theme, Container StyleSet the appearance of the cards. Choose Custom Theme for Background, Header, Text, Border, Highlight and Font. See Themes and container styles.

Multi-state

Add Multi-State... colors a field by its value. Select a numeric, enumeration or Boolean field, select Enable Multi-State, choose Property (Fill, Text or Card Accent), and set the levels under Status. Card Accent colors the card edge.

Troubleshooting and limitations

SymptomCauseWhat to do
The symbol shows No events found.No event frame matches the search in the time range.Change the time range or the search under Search Criteria....
A card shows No data-entry attributes are available for this event.With Automatic, the template has no attribute with Manual Data Entry. With Configured, the list has no attribute of this template.Set Manual Data Entry on the template attribute, or drag the attribute onto the symbol.
A field is Read Only.Allow Edit is off, or the attribute has a data reference other than a PI Point.Turn Allow Edit on. Attributes with other data references cannot be edited.
Save is dimmed.No field of the card has changed.Edit a field.
The card shows Save Failed.The write was rejected, for example for missing permission or an invalid state.Read the message under the buttons, correct the cause, and save again.
Copy Event or Split Event asks to save or revert first.The card has unsaved edits.Select Save or Revert, then use the action.
A field is empty although the attribute has a value.Prev. Value is off and the value was recorded outside the event.Turn Prev. Value on.
There is no Acknowledge button.Acknowledge is off, or the event cannot be acknowledged.Turn Acknowledge on. Events that cannot be acknowledged never show it.
A warning says Values were saved, but the change log could not be written.Log Changes is on, and the operator may write values but not annotate the event frame.Grant the Annotate permission on the event frames in AF, or turn Log Changes off.
The symbol with no matching events

Limitation: Saves, acknowledgements, copies and splits write to AF and cannot be undone from the symbol.

Limitation: The symbol edits existing event frames. It creates a new one only through Copy Event, and it does not delete events.

Limitation: Attributes of a referenced element cannot be dragged onto the symbol.