Documentation Vision Library+ Documentation

Web View+

Web View+ shows another PI Vision display or a web page inside your display, as a single frame, as tabs, as a slideshow, or in a dialog that opens from a button.

Overview

Web View+ with two Production Report pages as tabs

Watch the demo

See Web View+ in a practical PI Vision workflow.

When to use it

Use this symbol when you need to:

  • Show another PI Vision display inside the current display, so operators do not have to navigate away.
  • Offer several displays or pages as tabs, or rotate through them as a slideshow.
  • Keep a page out of the way until needed, and open it in a movable window from a button.
  • Pass the display time range, the asset, or a data source value on to the page you show.

Choose Navigation Button+ when the target page should replace the current display instead of staying embedded.

Before you begin

  • Use pages that allow embedding. PI Vision displays always work. For any other site, the PI Vision administrator must allow it first, see the section "Allow WebView+ frames" in the installation and administration guide.
  • A site can still refuse to be framed. That is the site's own decision, and PI Vision cannot override it.
  • Use HTTPS pages when PI Vision runs on HTTPS. Browsers block mixed content.
  • For Attribute mode, have a string PI Point or AF attribute that holds the page address.
  • The SeeQ page type needs a Seeq URL that the administrator sets in config.js. Until then SeeQ stays dimmed.

Add and set up the symbol

  1. Select Web View+ in the PI Vision symbol gallery and drag it onto the display.
  2. Right-click the symbol and select Configure WebView....
  3. Under General, select Embedded for Display (1) and Single for Mode (2).
  4. Under Page, select PI Vision for Type (1).
  5. Enter the address of the display (2), for example ./#/Displays/184/Production-Report-Page-1. To search by name or owner instead, select Search for Displays ....
  6. Close the configuration pane. The display appears in the symbol, without its own toolbar, sidebar, and time bar.
Display and Mode in the General group
Type and address in the Page group
Production Report Page 1 embedded in the symbol

Common tasks

Match the embedded display to the display time range

Use this when the embedded display should show the same period as the display around it. The embedded display keeps its own saved range until you do this. Here it was showing 7 days, as in the quick start.

  1. Right-click the symbol and select Configure WebView....
  2. Under Page, select Set start and end time (1).
  3. To show the time bar of the embedded display, select Show Timebar (2).
Set start and end time and Show Timebar selected

The embedded display now shows the range of the display time bar, here 8 hours.

The embedded report showing the same 8 hours as the display

Show several pages as tabs

Use this to let operators switch between related displays in one frame.

  1. Right-click the symbol and select Configure WebView....
  2. Under General, select Multiple for Mode (1) and Tabs for Type (2).
  3. Under Pages, select the first page in the list. Select its Type, enter the address, and enter a Title (1).
  4. Select + (2) to add another page, and repeat step 3.
Mode Multiple and Type Tabs
Two pages with their titles

Each enabled page becomes a tab. A page without a Title shows as Page 1, Page 2, and so on. Select a tab to show its page.

The second tab selected

Rotate pages as a slideshow

Use this on a wall display where nobody clicks. Set up the pages as in the previous task, steps 3 and 4.

  1. Right-click the symbol and select Configure WebView....
  2. Under General, select Multiple for Mode and Slideshow for Type (1).
  3. To let viewers step through the pages, turn Slideshow Buttons on (2).
  4. Under Interval, select Global, and enter the seconds each page stays visible in Time [s] (3).
Slideshow settings with a 20-second time

The pages rotate. The previous, pause, and next buttons appear in the lower-right corner of the frame.

Slideshow with the three buttons in the lower-right corner

To give each page its own dwell time, select Individual, and set Interval on each page under Pages. To keep several displays in step, give them the same Reference Time.

Open a page in a dialog from a button

Use this to keep the display uncluttered and show the page only on request.

  1. Right-click the symbol and select Configure WebView....
  2. Under General, select Dialog for Display (1).
  3. Select Fixed for Size and enter Width and Height in pixels (2), or select Relative to size the window as a share of the browser window.
  4. Under Button, set Background (3) to transparent if the display should show through, and set the Foreground and Font Size.
  5. Select Custom for Text (4) and enter the label.
  6. Under Border, set Width (5), Color, and Radius.
  7. Under Mode and Page, choose the page as in the quick start.
Display, Size, Button and Border settings for the dialog button

The symbol becomes a button.

A transparent button with a colored border

Select the button to open the page. The dialog is centered on the display, and its title bar shows the page address.

The page opened in an 800 by 520 dialog

Choose the page from a data source value

Use this when the page changes with a process state, such as a different overview for each product. The data source must be a string value that holds the page address.

  1. Drag the string PI Point or attribute onto the symbol, or add it with the symbol.
  2. Right-click the symbol and select Configure WebView....
  3. Under General, select Attribute for Mode.
  4. Under Page, select PI Vision or Custom for Type. SeeQ is not available in this mode.
The data source that supplies the address under Trace Options

The symbol shows the page at the address in the first data source (1) of Trace Options. When the value changes, the symbol loads the new address. The page settings under Page still apply to it.

The page named by the data source value

Pass the display time to a custom page

Use this for a page that is not a PI Vision display, or when you need to control the address yourself. A parameter is a key and a value that the symbol adds to the address. A placeholder such as %displayStartTime% in a value is replaced by live display context.

  1. Under General, set Mode to Single.
  2. Under Page, select Custom for Type and enter the address (1).
  3. Select + (2) to add a parameter, and enter the key (3), for example starttime.
  4. Select @ (4) next to its value and choose Display Start Time.
  5. Add a second parameter with the key endtime and the value Display End Time.
A custom page with the starttime and endtime parameters

The symbol builds the address with the current range. This dialog title shows ?starttime=*-8h&endtime=*, and the page shows the same 8 hours.

The page opened with the display time range in its address

Placeholders are case sensitive. A placeholder the symbol does not know, such as %Element%, is sent to the page unchanged. The full list is under Substitution placeholders.

Use the symbol

Web View+ in slideshow mode with numbered callouts
What it shows
(1)The embedded page. Work in it as in any other display.
(2)Previous, pause or play, and next. Visible when Slideshow Buttons is on.
(3)Reload, which reloads the page in the frame. Visible when Refresh Button is on.
(4)Open in a new tab. Visible when Navigation Button is on.
  • Interact with the page when Interaction is on. When it is off, the page is read-only and clicks do not reach it.
  • Pause freezes the slideshow on the page it shows, and the button becomes Play. Next and Previous still change the page while paused.
  • Tabs show the page of the selected tab. In tabs mode, Reload reloads the selected tab only.
  • Dialog buttons open the page in a window. Drag the title bar to move it, drag the lower-right corner to resize it, select the arrow icon at the left of the title bar to open the page in a new browser tab, and select the x to close it.
  • Web View+ never writes data. What an action inside the page does belongs to that page.
  • Nothing to show: when there is no valid address, the symbol shows a short message instead of a page. See Troubleshooting.

Configure the symbol

Right-click the symbol and select Configure WebView.... The pane has the groups General, Page (Single and Attribute mode), Pages (Multiple mode), Trace Options, and Help.

General

SettingWhat it does
DisplayEmbedded shows the page in the symbol. Dialog shows a button that opens the page in a window. See Open a page in a dialog from a button.
Size, Width, HeightDialog window size. Fixed uses pixels (640 by 480 by default). Relative uses a share of the browser window. Available when Display is Dialog.
Button: Foreground, Background, Font Size, TextStyle the dialog button. Text shows the Url, the Data source label (Attribute mode only), an Icon, or Custom text. Background can be transparent. Available when Display is Dialog.
Border: Width, Color, RadiusBorder of the dialog button. Available when Display is Dialog.
ModeWhere the address comes from. Attribute reads it from the first data source, Single uses one address you enter, Multiple uses a list of pages.
Type (Multiple)Slideshow rotates the pages. Tabs shows them as tabs.
InteractionOn by default. Allows mouse and keyboard use inside the page. Off makes the page read-only.
Navigation Button, Refresh ButtonShow the open-in-new-tab and reload buttons below the frame. Available when Display is Embedded.
Slideshow ButtonsShow previous, pause or play, and next. Available in Multiple mode with Slideshow. See Rotate pages as a slideshow.
Auto Reload, Interval [s]Reload the page on a timer. Off by default, 30 seconds by default. Available in Attribute and Single mode.

Slideshow

Available in Multiple mode with Slideshow.

SettingWhat it does
IntervalGlobal uses one dwell time for all pages. Individual uses the Interval of each page.
Time [s]The global dwell time. Available when Interval is Global.
Reference TimeThe moment the rotation is measured from, * by default. Displays with the same value rotate in step.

Tabs

Available in Multiple mode with Tabs.

SettingWhat it does
Load only selected tabLoads only the selected page, so hidden tabs make no background requests. Switching tabs reloads the page and resets its temporary state, such as zoom. When off, all enabled pages stay loaded. Available when Display is Embedded.
Background, Foreground, Active Background, Active Foreground, Font Size, BorderColors, text size, and outline of the tab strip.
SizingAuto sizes each tab to its title. Fill spreads the tabs across the width.

Page

Available in Single and Attribute mode. In Multiple mode the same settings are under Pages for the selected page.

SettingWhat it does
TypeCustom for any address, PI Vision for another display, SeeQ for a Seeq workbook.
AddressA full address, or ./#/Displays/<id>/<name> for a display. It must start with http, https, or ./#/. Not used in Attribute mode.
Search for Displays ...Search displays by name or owner and select one. Available for PI Vision pages.
Remove LinkClears the address.
ScaleShrinks the page between 10% and 100% so a page built for a larger window fits the frame.

PI Vision page

SettingWhat it does
Zoom to fitScales the embedded display so all of its content is visible. On by default.
Set start and end timePasses the display time range to the embedded display. See Match the embedded display to the display time range.
Show Timebar, Show Toolbar, Show SidebarShow the embedded display's own time bar, toolbar, or sidebar. All are hidden by default.
Show Context MenuTurns the embedded display's right-click menu on. Off runs the page in kiosk mode, which also removes the menu.
Show Zoom ButtonsShows the zoom controls of the embedded display. Available when Interaction is on.
Set asset contextPasses an AF element to the embedded display. Use current asset passes it as the asset, Use current asset as root passes it as the root of the asset tree.
Display Asset, Selected Asset, Custom AssetWhich element: every asset on the display, the asset selected on the display (the display assets while nothing is selected), or one fixed path such as \\Server\Database\Element. Available when Set asset context is on.

Navigation Button opens the page in a new tab with the toolbar, sidebar, and context menu restored, because a full page normally wants them.

Custom page

Enter an address and any number of parameters. Select + to add a parameter, @ to insert a placeholder, and the trash icon to remove one. See Pass the display time to a custom page.

Substitution placeholders

Placeholders work in parameter values and in the address itself. Each substituted value is encoded for you.

PlaceholderSubstituted value
%displayStartTime%, %displayEndTime%The display range as set, for example *-1h.
%displayStartTimeIso%, %displayEndTimeIso%The range as ISO 8601 timestamps.
%displayStartTimeEpoch%, %displayEndTimeEpoch%The range as epoch milliseconds, for targets such as Grafana.
%value%Current value of the data source.
%attribute%, %attributePath%Attribute name, or full attribute path, of the data source.
%element%, %elementPath%Element name, or element path, of the data source.
%selectedAsset%, %selectedAssetPath%Name, or full path, of the asset selected on the display. Empty while nothing is selected.
%assetsOnDisplay%, %assetsOnDisplayPath%Names, or full paths, of every asset on the display. In a parameter, the key repeats once per asset. In the address, only the first asset is used.
%assetsOnDisplay:;%, %assetsOnDisplayPath:;%Every asset joined into one value with the separator you type after the colon. Choose a separator the asset names do not contain. The joined path form matches what a PI Vision page sends.

For a specific data source, append : and its position: %value:2%, %attributePath:3%. A position without a data source gives an empty value. The order is set under Trace Options.

Pages

Available in Multiple mode. Use the list to add, reorder, and remove pages. Each page has its own Type, address, and Scale, with the settings of Page above.

SettingWhat it does
EnabledIncludes the page in the tabs or the slideshow.
TitleThe tab label. Without a title the tab reads Page 1, Page 2, and so on. Available with Tabs.
Auto Reload, Interval [s]Reload this tab on its own timer (60 seconds by default, at least 5). With Load only selected tab, the timer runs while the tab is selected. Available with Tabs.
Interval (page)In a slideshow with Individual timing, how long this page stays visible.

Seeq page

A SeeQ page opens Seeq's workbook builder on the Seeq server from config.js. No address is entered. Seeq accepts only ISO 8601 times and *-8h style relative times, so enter custom times in one of those forms. A time that cannot be converted leaves the whole start and end pair out of the address.

SettingWhat it does
Trend ItemsUse Current Attributes trends the data sources. Use Current Asset trends the assets on the display. Use Selected Asset trends the selected asset.
Display Time, Investigate TimePass Use Display Time or a Use Custom Time range as the visible or the investigation range.
Start FreshOn by default. Starts a new worksheet. Turn off to build on the existing worksheet, which is how a saved worksheet works as a template.
Workbook, Worksheet, Workbook Search ScopeOpen a workbook and worksheet by name. By default Seeq finds only workbooks you own, so a colleague's workbook is not found and Seeq opens a new one without an error. Choose Shared With Me, All Accessible, or Corporate Drive to widen the search.
Expanded AssetExpands one asset in Seeq's Data tab. Use Current Asset is the element of the first data source.
Asset SwapSwaps every item in the Seeq Details panel to one asset. Seeq skips an ambiguous swap silently. Turn Start Fresh off when you use it.
Selected Tab, View ModeOpen Search, Investigate, or Annotate, and Edit, View, or Present.

Assets are sent as Seeq asset paths: af:\\Server\Database\Pump1|Status becomes Pump1>>Status. Check Asset Swap against your Seeq version before you rely on it.

Trace Options

Lists the data sources of the symbol. Reorder or remove them here. The first one supplies the address in Attribute mode and the unindexed placeholders such as %value%.

Help

Shows how the administrator allows other sites to be framed.

Troubleshooting and limitations

SymptomCauseWhat to do
The frame is blank for a site that is not PI Vision.PI Vision's frame policy does not list the site, or the site forbids framing.Ask the administrator to add the host to FrameSrcPolicy (see Help in the pane). If it is still blank, the site sends X-Frame-Options: sameorigin or a similar rule, and only the site owner can change that.
The symbol shows No page configured, or says that no enabled page was found.The address is empty, or in Multiple mode no page is enabled.Enter an address, or turn Enabled on for a page.
The symbol shows "... is not a valid URL".The address does not start with http, https, or ./#/.Correct the address.
The browser reports mixed content.An HTTP page is framed in an HTTPS PI Vision.Use the HTTPS address of the page.
A page asks for a sign-in again and again.The target does not accept the sign-in of your browser session.Check the authentication of the target.
Clicks in the page do nothing.Interaction is off.Turn Interaction on.
The page does not receive the time or asset.The key or placeholder is misspelled, or the target does not read them.Match the placeholder spelling exactly (%displayStartTime%, not %DisplayStartTime%) and check the parameter names the target expects.
SeeQ is dimmed.No Seeq URL is set in config.js, or Mode is Attribute.Ask the administrator, or use Single or Multiple mode.
Zoom to fit changes nothing.It only affects embedded PI Vision displays.Use Scale for other pages.
The message the symbol shows for an address that is not valid

Limitation: A page that refuses framing stays blank. Web View+ does not work around that.

Limitation: Setting FrameSrcPolicy to Disable removes the frame restriction from the whole PI Vision application, not only from this symbol. Ask the administrator to list the hosts you embed instead.