Insert Event
- PI Vision Widget -
Revision History
| Revision No. | Date | Author | Document ID | Description of changes |
|---|---|---|---|---|
| 9.3 | November 2025 | RS | EW_InsertEvent_9.3_en.doc | Choosing an event from Event Table will not show name and description on the Insert Event widget |
| 9.2 | June 2025 | RS | EW_InsertEvent_9.2_en.doc | Added select REST provider |
| 9.1 | May 2025 | RS | EW_InsertEvent_9.1_en.doc | Added feature Get Support |
| 9.0 | March 2025 | ID | EW_InsertEvent_9.0_en.doc | Compatibility PI Vision 2024 and introduced new widget style |
| 8.2 | November 2023 | MDC | EW_InsertEvent_8.2_en.doc | Edit calls with external PIWebAPI |
| 8.1 | October 2023 | MDC | EW_InsertEvent_8.1_en.doc | Added field to enter external PIWebAPI |
| 8.0 | August 2023 | MDC | EW_InsertEvent_8.0_en.doc | Compatibility PIVision 2023 |
| 7.1 | September 2022 | CC | EW_InsertEvent_7.1_en.doc | Add custom configuration |
| 7.0 | August 2022 | AM | EW_InsertEvent_7.0_en.doc | Compatibility PIVision 2022 |
| 6.1 | May 2022 | MDC | EW_InsertEvent_6.1_en.doc | Writing completed message inserted |
| 6.0 | October 2021 | MDC | EW_InsertEvent_6.0_en.doc | Compatibility PIVision 2021 |
| 4.0 | October 2020 | OS | EW_InsertEvent_4.0_en.doc | Compatibility PIVision 2020 |
| 2.2.1 | August 2020 | BA | EW_InsertEvent_2.2.1_en.doc | Review |
| 2.2 | November 2019 | PC | EW_InsertEvent_2.3.doc | BugFix |
| 2.1 | November 2019 | PC | EW_InsertEvent_2.2.doc | Expiration date |
| 2.0 * | March 2019 | GI | EW_InsertEvent_2.1.doc | Restyling review * Review of the modified N. in order to align it with the version number of the Widget |
| 2.1 | December 2018 | PC | TQS_InsertEvent_2.1.doc | Review, adding and editing user comments |
| 2.0 | November 2017 | GT | TQS_InsertEvent_2.0.doc | Widget configuration restyling Installation procedure modification |
| 1.0 | September 2017 | GT | TQS_InsertEvent_1.0.doc | First release documentation |
Document References
| Document | Description |
|---|---|
| PI Vision Installation and Administration Guide | PI Vision™ user manual from AVEVA |
| EW_TreeEvent | EW_TreeEvent widget user manual |
| EW_EventTable | EW_EventTable widget user manual |
Introduction
EW Insert Event widget allows users to enter and close the event frame using a graphical interface within PI Vision.
The parameters for its population are passed by the widget Tree Event: database, template, range, and unit.
The PI Vision of AVEVA is available from 2017 and allows viewing real-time data from PI Data Archive and data organized in assets from the AVEVA Asset Framework (PI-AF). In order to achieve PI Vision displays, simply access to https://webServer/PIVision (indicating the correct name of the webserver machine).
The most recent versions of most HTML5 compatible browsers are supported on computers, tablets and phones running Android and iOS.
In PI Vision the configuration of the elements is quite intuitive and is characterized by a simple drag-and-drop of the control into the display.
Definitions, Acronyms And Abbreviations
Acronyms and definitions that are used in the current manual are listed below.
| Term | Definition |
|---|---|
| EF | Event Frame |
Operating Principles And Use
To insert the widget, select the corresponding icon and navigate to the asset to be displayed and drag all the attributes involved by the Advanced Manual Entry in the display area.
Figure 1 - PI Vision Menu
When the mouse is released the widget is positioned and must be customized.
Figure 2 - Widget
For customization, the contextual menu should be selected with the right mouse button and then select the configure form item*.*
Figure 3 - Context Menu
Once installed and configured the widget it is possible to control display as explained in the next chapter.
Functionality and use
Inserting and editing of the Event Frame
To insert a new event frame, select the widget Tree Event, then the reference element on which it is desired to associate the event frame (1).
After selecting the item, fill out the fields in the widget information with the Start Time/Inizio and the eventual Comment.
To compile the timestamp select the appropriate icon for the date and time and then proceed to the creation with the START button (2).
Figure 4 - Entering a new Event Frame: step 1
Once saved, the event frame could be displayed with the widget Event Table and, if one of the rows is selected, the input mask is repopulated with the information.
Figure 5 - Closing Event Frame: step 2
To proceed with closing it, it is sufficient to indicate the timestamp of the end of the event frame and click on the End Time/Fine button. Furthermore, before closing the Event Frame, it will be possible to modify the comment.
The Clean/Pulisci button is used to delete the contents of the fields if you want to proceed with a new entry.
Customization and configuration
The widget configuration allows you to change the widget look in terms of colours, text size, and display language.
Language
The section Language allows users to choose the language with which the user visualizes labels and configuration parameters.
Figure 6 - Language selection
Event Frame Template
To create a new event frame, it must provide its template; in the section Event Frame Template Name**,** it is sufficient to indicate the name of the template.
Figure 7 - Template Indication
Below is an example of the Event Frame template.
Figure 8 - Template Event Frame
It is important that the two string attributes for Comment and User are defined in the Event Frame Templates in AF, as shown in Figure 8.
REST Provider
Allows the user to select between default or custom protocol for api requests.
Figure 9 - REST Provider selection
Settings
- Enumerator Sets: Permit to associate enumeration set value and string attribute;
- Attribute category: allows to enhance a set of editable attributes of the event frame;
- Comment attribute: Define the attribute where you can write the comment;
- User attribute: Define the attribute where you can write the user;
- Severity: It’s possible add to event frame the severity;
- Custom name event frame: It’s possible modify the name of saved event frame:
- Prefix: It’s possible add one prefix at the event frame name;
- Element name: It’s possible add the element name in the event frame name;
- Start time: It’s possible add the time and date in the event frame name;
- Description: It’s possible modify the event frame description;
- Element template name: It’s possible add the element template name at the description of event frame;
- User: It’s possible add the user at the description of event frame;
Figure 10 - Settings
Offset
This option is used to add an offset to the starting date and ending date of the event frame data (in minutes).
Figure 11 - Offset
Text Size
In addition to that, it is also possible to customize the text font size, selecting the pixels in the combo section Text Size
Figure 12 - Customize the text size
Colors widget
It is possible to customize the colors of the widget in terms of:
- Background;
- Text of the table;
- Background of the table.
as shown in the figure below.
Figure 13 - Color Customization
In order to configure the colour, it is enough to select the colour drop-down menu and choose the gradation on the first horizontal scrollbar, the potential point on the colour palette and indicate through the second horizontal scrollbar the level of transparency. Confirm with the button .
Figure 14 - Choice of color
Contacts
Get Support button (read Get Support documentation)
Link to e-matica.com (click on the icon)
Link to widget online documentation (click on link)
Figure 15 - Contacts
Installation
Following are the installation requirements and procedure.
Requirements
In order to install the product, minimum requirements are listed in the table below:
| Software | Version | Note |
|---|---|---|
| PI Vision | 2024 (*) | Requirements are linked to the PI Vision correct functioning |
Table 1 - Installation prerequisites
(*)This widget is also compatible with PI Vision 2023, 2022, 2021, 2020 and 2019.
We suggest using Google Chrome for full compatibility with the widget.
Installation procedure
The installation procedure involves the copy of different folders and files in the predefined PI Vision path.
In particular it is necessary to copy the following filed in the folder ..\PIPC\PIVision\Scripts\app\editor\symbols\ext:
- sym-TQSInsertEvent.js;
- sym-TQSInsertEvent-config.html;
- sym-TQSInsertEvent-template.html;
and in the folder ..\PIPC\PIVision\Public the following folders:
- Images which contains the control icon:
- TQSInsertEvent.png;
Additional notes for the use of the product
For proper operation of the widget must disable the Cross-Site Request Forgery (CSRF) and explicitly enable the PUT and POST methods in the PI Vision configuration database:
- Connect to the Configuration Database using the PI System Explorer.
- Expand the OSIsoft element.
- Expand the PI element WEB API.
- Expand the PI element Vision-srv.
- Select the System Configuration element.
- Select the attribute Cors Methods and add if no PUT and POST methods separated by commas
- Select the EnableCSRF attribute and set the value to FALSE.
Figure 16 - Configuration Database
After these procedures, the PI Web API service needs to be restarted.
Figure 17 - Restart PI API Web Service
Notes And References
For more information about Vision PI refer to documentation on AVEVA © portal.
For information about the web service to refer to the specific documentation.
For the use of the Tree Event and the Event Table refer to the specific documents EW_TreeEvent and EW_EventTable.