Documentation Vision Library+ Documentation

Navigation Menu+

Navigation Menu+ gives operators one place to move between related displays: a bar or side menu of links to PI Vision displays and web pages, with submenus. A link can carry the display time range and asset to the display it opens, and one menu can be shared by many displays.

Overview

Navigation Menu+ as a horizontal bar with the Analysis submenu open

Watch the demo

See Navigation Menu+ in a practical PI Vision workflow.

When to use it

Use this symbol when you need to:

  • Give operators the same navigation on every display of a plant area.
  • Group many links in submenus, in a bar across the top or in a narrow side column.
  • Open a display with the same time range or the same asset as the display the operator is on.
  • Keep the menu out of the way until the operator asks for it.
  • Keep one menu definition in step across many displays.

Choose Navigation Button+ when a single link is enough.

Before you begin

  • Know the displays to link, or save them first so you can find them by name or owner. Operators need access to every display or page you link.
  • For a menu shared by several displays, create an AF attribute of data type String with no data reference, and have write permission to it. PI Points are not supported.
  • Menu items are built in the configuration pane. If the administrator limited configuration to PI Vision administrators, see Troubleshooting.

Add and set up the symbol

  1. Select Navigation Menu+ in the PI Vision symbol gallery and drag it onto the display. It needs no data source.
  2. Right-click the symbol and select Configure Navigation Menu....
  3. Under Menu Items, select the top item (the home icon) and enter a Title for the menu, for example Plant.
  4. Under the tree, select Add link (1). The new link appears in the tree with its title ready to edit (2). Type the title, for example Production report, and press Enter. The warning icon (3) shows until the link has a target.
  5. Select Search for Displays ... (1), enter part of the display name, select the search icon (2), and select the display (3). The link field shows the display address.
  6. Repeat steps 4 and 5 for each further link. A new link goes after the link you have selected.
  7. Under Settings, open Layout and select Horizontal (1) for Orientation and Static (2) for Mode. Close the pane.
Adding a link: the Add link button and the new link with its title being typed in the tree
Searching for a display by name
Orientation Horizontal and Mode Static in the Layout group

The bar shows the menu title and the three links. Select a link to open its display.

Navigation Menu+ with three links after the quick start

A new symbol starts as a vertical bar that is collapsed to a button. Step 7 is what makes it a bar that stays open.

Common tasks

Use this when the menu has more links than fit in a row.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Menu Items, select the top item and select Add menu (1) under the tree. Type the menu title, for example Production, and press Enter.
  3. Select + (2) on the menu row to add a link inside the menu. Type its title, press Enter, and link it as in the quick start. Repeat for each link of the menu.
  4. Select the top item again and repeat steps 2 and 3 for the next menu. A menu can hold further menus.
  5. Under Settings > Layout, select Dropdown for Items.
A tree with two menus, each holding links, with the Add menu button and the + of a menu row

The badges after a link show what it opens: a display, a web page, an asset context, a new tab.

Menus show a chevron. Hover over a menu, or select it, to open its links in a panel over the display. The panel closes about a second after the pointer leaves.

The Analysis menu open with its three links

A menu can have a link of its own in Dropdown mode. Selecting its title then opens the link, and selecting its chevron opens the submenu.

Reorder and move items

Use this when an item is in the wrong place.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Menu Items, drag an item onto another row. Drop it on the top or bottom edge of a row to place it before or after that row, or on the middle of a menu to move it into the menu.
  3. Or select the item and press Ctrl+Up or Ctrl+Down to move it within its menu, Tab to move it into the menu above, or Shift+Tab to move it out of its menu.
  4. To add an item at an exact place or change its type, select ... (1) on its row. Select a type next to Add above, Add below or Add inside (2), or next to Convert to (3).
The row menu of a link with Add above, Add below and Convert to

The menu on the display follows each edit at once. Deleting an item that holds items asks for confirmation first. Press Ctrl+Z to undo an edit.

Open a display with the same time range or asset

Use this when the target display should show the same period or the same equipment as the display with the menu. A new link already has Open in New Tab and Set start and end time selected, with Display time range chosen.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Menu Items, select the link.
  3. Under Link Parameters, keep Set start and end time (1) selected. Display time range passes the range of the display time bar. To pass a fixed range, select Custom time range (2) and enter Start and End (3), for example T-1d and T for yesterday.
Set start and end time with a custom range
  1. Select Set asset context (1) and choose Use current asset (2). Choose Use current asset as root to pass the asset as the root of the asset tree instead.
  2. Choose Display Asset for the assets on the display, or Custom Asset (3) for one fixed element. For Custom Asset, enter the element path (4) or drag an element onto the field.
Set asset context with a custom element path

When the operator selects the link, the symbol adds the parameters to the address of the target display. With the display range set to the last 8 hours, the address of a link ends in ?startTime=*-8h&endTime=*. A custom asset adds asset= followed by the encoded element path, and the root option adds rootPath= instead. Clear Open in New Tab to replace the current display instead of opening a tab.

Collapse the menu to a button

Use this when the menu would take space that the display needs.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Settings > Layout, select Expandable (1) for Mode.
  3. Select Click or Hover (2) for Action.
  4. To change the button icon, select Search for icons ... under Expand Icon, enter a name, and select an icon (3).
Mode Expandable, Action Hover and a new Expand Icon

The symbol shows only the button until the operator opens it.

The collapsed menu with the grid icon

With Click, the button opens the bar and closes it again. With Hover, the bar opens when the pointer reaches the button and closes when the pointer leaves.

The same menu opened, with a close icon in place of the button

Drill down inside a narrow side menu

Use this when the menu sits in a narrow column and a floating panel would cover the display.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Settings > Layout, select Vertical (1) for Orientation, Inline (2) for Items, and Static (3) for Mode.
  3. Under Title, keep Breadcrumb on.
Vertical, Inline and Static in the Layout group

Menus show an arrow. Selecting a menu replaces the list with its links. With Breadcrumb on, a row for each parent menu appears above the links, and selecting a row returns to that level. With Breadcrumb off, one back row returns one level.

The Analysis links with a row that returns to Plant

Match the menu to the display theme and show where the operator is

Use this when the menu should look like the rest of the display and tell operators which page is open.

  1. Right-click the symbol and select Configure Navigation Menu....
  2. Under Settings > Style, select a Theme (1) and a Container Style (2).
A theme and a container style selected in the Style group
  1. Under Title, select Current (1). Keep Breadcrumb (2) on to show the full path.
Title Current with Breadcrumb on

The bar takes the theme, and the title names the open page, here Production / Production report. The item whose link matches the open display is highlighted. This needs no setting. Link the item with Search for Displays ... so the address matches.

A themed bar with the open page named in the title and highlighted in its menu

Use the symbol

Navigation Menu+ with numbered callouts
What it shows
(1)The logo. Select it to open the link of the top item, if the top item has one.
(2)The title. With Current it names the open page, and the tooltip shows the full path. Select it to open the link of the top item.
(3)A menu. The chevron means that it opens a submenu.
(4)The item that matches the open display, highlighted so operators see where they are.
(5)The kiosk toolbar: kiosk mode, sidebar, display toolbar and time bar. Visible when Show Kiosk Toolbar is on.
  • Hover over an item to highlight it. In Dropdown mode, hovering over a menu opens it.
  • Select a link to open its display, in the same tab or a new tab as configured, with the time range and asset you set. A link keeps kiosk mode and a hidden sidebar, toolbar or time bar when the current display has them. An item without a link does nothing.
  • Expandable bars open from the button as set under Action. While you edit the display, hovering does not open the bar, so you can still select the symbol.
  • Back returns to the previous page when Show Back is on.
  • The toolbar buttons toggle kiosk mode, the sidebar, the display toolbar and the time bar for this display.
  • Navigation Menu+ never writes data when operators use it. Only Save in the pane writes, and only to a shared menu.

Configure the symbol

Right-click the symbol and select Configure Navigation Menu.... The pane has the sections Menu Items, Settings (the groups Layout, Style, Items, Title, Logo and Toolbar) and Configuration.

Menu items

The tree shows the top item and its items. Select an item to edit it in the fields below the tree. The top item cannot be moved, converted or deleted.

SettingWhat it does
Add menu, Add link, Add separatorThe buttons under the tree. Add an item inside the selected menu, or after the selected link or separator. The new item is selected with its title ready to edit. See Group links in submenus.
Duplicate, DeleteCopy the selected item after it, or delete it. Deleting an item that holds items asks for confirmation first.
Row +Adds a link inside the menu. Available on menu rows.
Row ...Add above, Add below or Add inside a menu, link or separator, Convert to another type, Duplicate and Delete. A menu that has items cannot become a link or separator. See Reorder and move items.
RenameDouble-click a row or press F2, type the title and press Enter. Escape cancels.
Drag and dropDrop on the top or bottom edge of a row to place the item before or after it, or on the middle of a menu to move it inside. A menu cannot move into its own submenus.
KeyboardThe arrow keys move the selection and expand or collapse menus, Home and End go to the first and last row. Ctrl+Up and Ctrl+Down move the item, Tab moves it into the menu above, Shift+Tab out of its menu, Delete deletes it.
TitleThe label of the item. For the top item, the menu title.
IconSelect Search for icons ... to pick an icon. The small x removes it.
Hide TitleShows only the icon. Available when the item has an icon.
Separator Line or TextA horizontal rule, or a group heading with the text you enter. Available when Orientation is Vertical.
LinkThe address to open. It starts with ./#/ for a PI Vision display, or with http or https for any other page. Available for links, the top item, and menus in Dropdown mode. The link of the top item is what the logo and the title open.
Search for Displays ...Finds a display by name or owner and enters its address.
Open in New TabOpens the target in a new browser tab. On for new links. Available when a link is set.
Set start and end timePasses a time range: Display time range or Custom time range with Start and End. On for new links. See Open a display with the same time range or asset.
Set asset contextPasses an asset: Use current asset or Use current asset as root, from Display Asset or Custom Asset.
Remove LinkClears the link of the item.

For a page outside PI Vision, enter its full address and clear Set start and end time, because most pages do not read it.

Layout

SettingWhat it does
OrientationVertical puts the bar down the left of the symbol, Horizontal across the top. A new symbol is vertical.
ItemsInline drills down inside the bar. Dropdown opens submenus as a panel over the display. See Drill down inside a narrow side menu.
ModeStatic keeps the bar visible. Expandable collapses it to a button. A new symbol is expandable.
ActionClick or Hover opens the bar. Available when Mode is Expandable.
Expand IconThe icon of the button. Available when Mode is Expandable. See Collapse the menu to a button.

Style

SettingWhat it does
ThemeThe color theme of the bar, from Software Athlete to Custom Theme. A new symbol uses Steel Blue.
SurfaceFlat, or Gradient derived from the theme color.
Container StyleNone, Flat, Card, Framed or Glass frame around the menu.
Apply to all symbolsCopies the theme, surface, container style and display background to every other Vision Library+ symbol on the display.
Foreground, Background, Border, Title Background, Font NameColors and font of the bar. Available when the theme is Custom Theme. A transparent Border follows the foreground color.
Font SizeThe size of the item text.
Scale with ZoomScales text and item sizes with the display zoom.

The theme choice and the title are used in Match the menu to the display theme and show where the operator is.

Items

SettingWhat it does
Icon PositionPuts the icon Left of the title, Right of it, or Above it.
AlignAligns the items Left, Center or Right in the bar.
Spacing, PaddingThe space between items, and inside each item, from 0 to 40.
Wrap ItemsWraps items onto further rows when they do not fit the width, instead of scrolling. Available when Orientation is Horizontal.

Title

SettingWhat it does
TitleHidden shows no title. Menu shows the name of the menu that is open. Current shows the name of the item that matches the open display.
BreadcrumbIn an inline menu, shows a row for each parent menu above the links. With Current it spells the path in the title. On for new symbols.
Font Size, BoldSize and weight of the title. Available when Title is not Hidden.
SettingWhat it does
ImageSelect ... picks the logo image. The x button clears it.
PositionPuts the logo at the Start or the End of the bar.
SizeThe logo size as a percentage, 0 to 100.

Toolbar

SettingWhat it does
Show BackAdds a back button that returns to the previous page.
Show Kiosk ToolbarAdds four buttons that toggle kiosk mode, the sidebar, the display toolbar and the time bar.

Configuration

The Configuration section with the shared menu selected
SettingWhat it does
DisplayStores the menu in this display only.
Attribute optionStores the menu in the AF string attribute of the symbol, named after it in the pane, so every display with that attribute shows the same menu. Not available without write permission, or when the attribute is not a String without a data reference.
Follow Display Asset ContextLets the attribute that holds the menu follow the asset context of the display, so each asset can have its own menu. Available for a shared menu. Reload the display after you change it.
ReloadDiscards unsaved edits and reads the menu from the attribute again.

To share a menu:

  1. Create the String attribute, drag it onto Navigation Menu+, and select the attribute option under Configuration.
  2. If the attribute already holds a menu, the symbol asks before it replaces the menu of this display. If the attribute is empty, select Initialize Shared Configuration to write the menu you see to it.
  3. Edit the menu. The edits stay in this display until you select Save under Menu Items. Closing the pane without saving discards them.

Important: Save and Initialize Shared Configuration write to the PI System and change the menu of every display that uses the attribute. The pane shows when the menu was last saved and by whom. If another display saved first, the pane reports a conflict and does not overwrite: select Reload and apply your edits again.

Troubleshooting and limitations

SymptomCauseWhat to do
Selecting an item does nothing.The item has no link, or the link is not valid.Select the item and enter a link starting with ./#/, http or https, or use Search for Displays ....
A link opens a new browser tab.Open in New Tab is on. It is on for new links.Clear Open in New Tab.
The target display keeps its own time range.Set start and end time is off for the link.Select it under Link Parameters.
The current display is not highlighted in the menu.The link of the item does not match the address of the open display, for example a link typed by hand.Select the item and pick the display again with Search for Displays ....
The symbol shows only a button.Mode is Expandable.Select the button, or set Mode to Static.
The pane says that configuration requires PI Vision administrator privileges.The administrator set ConfigRequiresAdmin for Navigation Menu+ in config.js.Ask a PI Vision administrator to configure the menu or change the setting.
The pane says that changing the configuration requires Write Data permission.You have no write permission on the attribute that stores the shared menu.Ask your PI administrator for write permission, or store the menu in the display.
The attribute option is dimmed and the pane reports an unsupported data type.The attribute is not a String, has a data reference, or is a PI Point.Use an AF String attribute without a data reference.
The pane reports that the shared configuration changed.Another display saved the menu after you opened the pane.Select Reload and apply your edits again.
The menu shows a default placeholder after you close the pane.A shared menu was never initialized, so the attribute is empty.Select Initialize Shared Configuration.

Limitation: Wrap Items applies to horizontal bars. A vertical bar scrolls.

Limitation: A shared menu is stored in an AF attribute, not in a PI Point.

Limitation: Save checks for a newer value just before it writes, but PI Web API cannot make that check and the write one step. Two people who save at the same instant can overwrite each other.