Tree Link
- PI Vision Widget -
Revision History
| Revision No. | Date | Author | Document ID | Description of changes |
|---|---|---|---|---|
| 9.3 | June 2025 | RS | EW_Treelink_v9.3 | Added select REST provider |
| 9.2 | May 2025 | RS | EW_Treelink_v9.2 | Merge Tree Link with Tree Event |
| 9.1 | May 2025 | RS | EW_Treelink_v9.1 | Added feature Get Support |
| 9.0 | March 2025 | AL | EW_Treelink_v9.0 | Compatibility with PIVision 2024 and new widget style introduced |
| 8.2 | June 2024 | NM | EW_Treelink_v8.2 | Added “time zone” configuration to choose a specific UTC |
| 8.1 | April 2024 | MDC | EW_Treelink_v8.1 | BugFix; Search Function |
| 8.0 | August 2023 | MM | EW_Treelink_v8.0 | Compatibility with PI Vision 2023 |
| 7.5 | May 2023 | MDC | EW_Treelink_v7.5 | New Initialization without PopUp |
| 7.4 | May 2023 | MDC | EW_Treelink_v7.4 | BugFix |
| 7.3 | April 2023 | MDC | EW_Treelink_v7.3 | BugFix; Management of elements without templates |
| 7.2 | April 2023 | MDC | EW_Treelink_v7.2 | Added "Fixed tree" configuration for connection type "Element" |
| 7.1 | January 2023 | MDC | EW_Treelink_v7.1 | Assets Management |
| 7.0 | August 2022 | AM | EW_Treelink_v7.0 | Compatibility with PI Vision 2022 |
| 2.31 | August 2020 | MDV | EW_Treelink_v2.31 | Revision of documentation; BugFix |
| 2.30 | June 2020 | MDC | EW_Treelink_v2.30 | Start hidden Tree function |
| 2.29 | April 2020 | MDC | EW_Treelink_v2.29 | BugFix |
| 2.28 | March 2020 | MDC | EW_Treelink_v2.28 | BugFix |
| 2.27 | March 2020 | MDC | EW_Treelink_v2.27 | Ghost mode with scroll bar and definable height; Highlighted element with URL attribute |
| 2.26 | February 2020 | MDC | EW_Treelink_v2.26 | BugFix |
| 2.25 | February 2020 | MDC | EW_Treelink_v2.25 | Improved support for special characters |
| 2.24 | January 2020 | PC | EW_Treelink_v2.24 | KeepTree function |
| 2.23 | November 2019 | PC | EW_Treelink_v2.23 | BugFix |
| 2.22 | October 2019 | PC | EW_Treelink_v2.22 | Expiry date support; Performance increase |
| 2.21 | October 2019 | PC | EW_Treelink_v2.21 | Performance increase; No link open if there is no attribute in the selected element |
| 2.20 | September 2019 | PC | EW_Treelink_v2.20 | BugFix |
| 2.19 | July 2019 | PC | EW_Treelink_v2.19 | BugFix |
| 2.18 | July 2019 | PC | EW_Treelink_v2.18 | Ghost mode added |
| 2.17 | June 2019 | PC | EW_Treelink_v2.17 | Possibility to manage root through AF table; Managing of “HideToolbar”, “HideTimebar” and “mode=kiosk” parameters; Icons with the same text and arrows size; Configuration parameter for the arrows color; Element research functionality; Performances increased; Horizontal and vertical scrolling bars added. |
| 2.5 | April 2019 | GI | EW_Treelink_v2.5 | Show Description functionality |
| 2.4 | March 2019 | RR | EW_Treelink_v2.4 | Review |
| 2.0.2 | February 2018 | GT | EW_Treelink_v2.0.2 | Asynchronous loading functionality |
| 2.0.1 | January 2018 | PC | EW_Treelink_v2.0.1 | Review |
| 2.0 | November 2017 | GT | EW_Treelink_v2.0.doc | Widget configuration restyling; Installation procedure modification |
| 1.0 | September 2017 | GT | EW_TreeLink_v1.0.doc | First review |
Document References
| Document | Description |
|---|---|
| PI Vision Installation and Administration Guide | PI Vision™ user manual from AVEVA |
Introduction
The EW Tree Link widget displays the AF hierarchical tree and allows navigation in PI Vision.
Moreover, it enables matching a URL with an element to open the corresponding link.
PI Vision from AVEVA, available since 2017, enables viewing real-time data from the PI Data Archive and data organized in assets from the AVEVA Asset Framework (PI-AF).
Simply access PI Vision at: https://webServer/PIVision (replace webServer with the correct machine name).
The widget is compatible with the most recent versions of HTML5-enabled browsers on computers, tablets, and smartphones running Android and iOS.
Configuration in PI Vision is intuitive, based on 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 |
|---|---|
| AF | Asset Framework |
Operating Principles And Use
To insert the EW Tree Link, first select the control icon, navigate to the desired asset, and drag it into the display area.
Figure 1: PI Vision Menu
When the mouse button is released, the widget initializes with a “Database” connection.
Figure 2: Root selection
By selecting the contextual menu, you can access the widget configuration box.
Figure 3: Contextual Menu
Functionality and use
Once the display is added and configured, the tree view becomes visible.
The tree highlights the AF element type using various symbols.
- The database is indicated by a specific symbol.
- Other element types are customizable through an AF attribute (parametric attribute).
New functionalities include:
- Hide/show the tree view using a small left-triangle button.
- Open the web page corresponding to a configured URL by pressing
<CTRL>when the link is selected.
Customization and configuration
The widget configuration allows you to change the appearance regarding colors, text size, and language.
Some parameters are automatically visible, while others require saving the display and reloading it.
Figure 4: Refresh page reminder
Language
In the International section, you can choose the language for labels and configuration parameters.
Figure 5: Language selection
Widget Configuration Tree Link
Selected Widget Tree Link
Since the merge of the Tree Event and Tree Link in one widget the user will be able to change between the two configurations in the configuration panel.
Figure 6: Selected Widget
WebAPI
In the Server Web API section, set the machine name for the web API. If it coincides with the web server, leave it blank.
Figure 7: Web API server option
Root Table
An AF Table can be set to manage the tree root dynamically based on the user.
Figure 8: Web server selection
Below is an example of an AF table:
Figure 9: AF Table for dynamic Root management
Connection Types
The tree view root (set during element insertion) can be modified by choosing between "Database" and "Element". Additional configurations include:
- Keeping the tree view hidden when opening a display via the tree.
- Synchronous or asynchronous node loading.
- Asset loading from URL: if a URL contains an element asset, the widget starts the tree from that asset.
- Option to expand all nodes during loading (not recommended for large trees).
- KeepTree mode: Retains the tree structure after a page is loaded.
For connection type "Element", the Fixed tree option allows defining a fixed path from which the tree view must start. If KeepTree mode is enabled, the Fixed tree field is ignored.
Figure 10: Root selection
REST Provider
Allows the user to select between default or custom protocol for api requests.
Figure 20 - REST Provider selection
Settings
Settings allow you to:
- Toggle the display of node descriptions.
- Adjust the size of the arrows used to expand nodes.
- Toggle the search option.
- Enable or disable Ghost mode (which displays the tree beyond the widget size without a scrollbar).
When using a scrollbar, select the "With scroll bar" option and define the maximum tree view height. - Set the dimensions for horizontal and vertical scroll bars.
Figure 11: Other settings
Icon Attribute
Set the name of the attribute that holds the icon image for each element (except the database).
This attribute (of string type) should be configured in AF with the corresponding file name, which is located in the installation folder (e.g., ..\PIPC\PIVision\Public\Images\TreeIcon).
Figure 12: Icon attribute
Figure 13: Element icon
Each element or template can have a different icon.
Figure 14: Tree icon visualization
URL Attribute Name
Configure the attribute name that contains the URL link for a specific tree branch.
This attribute may hold an HTTP address or a reference to another PI Vision display.
For example, if a PI Vision display URL is http://webserver/PIVision/#/Displays/40005/DisplayGruppo, only the identifying portion of the address is needed.
Figure 15: URL attribute
An example configuration in AF for the URL attribute is shown below:
Figure 16: URL attribute definition
DB URL
Specify the URL to which the database connects.
Figure 17: AF Database URL
Open Link Mode
Decide whether the selected link opens in the same tab or in a new browser page.
Figure 18: Open link mode
Template Jump Start/End
This option hides nodes between the start element template (Template Jump start) and the end element template (Template Jump end).
Figure 19: Template Jump start/end
Link Context
Choose between:
- Asset: The selected node becomes the display asset (only widgets created with that element update).
- RootPath: The selected node is set as RootPath (all widgets using that element or its descendants update).
Figure 20: Link context
Filters
In the "Filter" and "Template to show" sections, you can choose to load only selected templates or the entire tree.
(Be aware that some information might not be visible depending on the tree configuration.)
Figure 21: Tree loading filters
Template Filters
Figure 22: Template filters
Set Time Zone
The "Imposta time zone" section lets you select a specific UTC. When enabled, all UTC values (ranging from -12 to +12 by default) are displayed.
You can deselect any values that should not be considered. Once flagged, a symbol appears next to the PI Vision title. Clicking this symbol generates a drop-down menu for selecting the UTC.
Figure 23: Set time zone
Display of the Icon and List of UTCs
Only the UTC values set in configuration will be selectable in the drop-down menu.
If there are too many UTCs to display at once, a scrollbar will appear.
Figure 24: Display of the icon in the PI Vision
Figure 25: List of UTCs
Widget Configuration Tree Event
Selected Widget Tree Event
Inside the configuration panel the user will be able to select the widget that will load the data on start.
It can choose between TreeLink and TreeEvent
Figure 26: Selected Widget
WebAPI
In the Configuration section, the user has to set the name of the machine involving web API. If this machine coincides with the web server, this parameter can be left blank.
Figure 27 - Web API server option
Connection type
It is possible to modify the tree view root, set during the insertion of the element into the display, and choose Database or Element.
Figure 28 - Root selection
Template Name
It is useful to manage event frames; this parameter refers to the name of the element template, to which event frames are associated. The Element template name is located in the Configuration section.
Figure 29 - Template
Assets
Attributes dragged into the display create the widget.
If multiple assets are present, you can delete an asset by clicking on its associated symbol.
Figure 30: Assets section
Appearance Settings
In the Appearance Settings, you can modify the appearance of the widget.
Figure 31: Appearance Settings
To configure the color:
- Select the color drop-down menu.
- Choose a gradation on the first horizontal scrollbar.
- Pick a potential point on the color palette.
- Adjust the transparency with the second horizontal scrollbar.
- Confirm with the button provided.
Figure 32: Color choice
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 33: Contacts
Installation
Follow the instructions below for installation requirements and procedures.
Prerequisites
The following table shows the minimum requirements for installing this product:
| Software | Version | Note |
|---|---|---|
| PI Vision | 2024(*) | Requirements are related to the correct functioning of the PI Vision |
| (*) This widget is also compatible with PI Vision 2023, 2022, 2021, 2020 and 2019. |
Table 1 - Installation prerequisites
It is recommended to use Google Chrome for full compatibility with the widget.
Installation procedure
The installation involves copying several folders and files to the predefined PI Vision path.
-
Copy the following files into the folder:
..\PIPC\PIVision\Scripts\app\editor\symbols\extsym-TQSTreeLink.jssym-TQSTreeLink-config.htmlsym-TQSTreeLink-template.html
-
In
..\PIPC\PIVision\Public\Images\TreeIcon, place the icons used for elements within the tree. -
In the folder
..\PIPC\PIVision\Public, copy the following folders:- Images: Contains the control icon
TQSTreeLink.png - Libs: Contains the libraries (e.g.,
EWClasses.js)
- Images: Contains the control icon
Additional notes for the use of the product
For the widget to function correctly:
- Disable Cross-Site Request Forgery (CSRF).
- Explicitly enable PUT and POST (and BATCH) methods in the PI Vision configuration database.
Steps:
- Connect to the Connection database via PI System Explorer.
- Expand the element Osisoft.
- Expand PI WEB API.
- Expand PI Vision-srv.
- Select the element System Configuration.
- Set the attribute
CorsMethodsto include PUT, POST, and BATCH methods (separated by commas). - Set the attribute
EnableCSRFto TRUE.
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.