View as Markdown

Opening a Screen as a Popup

An element on a diagram can open another screen in a popup over the current one, so the operator reads or controls one piece of equipment and never leaves the overview. The usual case is a faceplate or detail screen for a pump, a breaker or a chiller.

How a popup behaves

A screen is a diagram of type Diagram, the kind people open and view on its own. Instances and Templates cannot be opened as a popup. Popups work the same way on the console (the web app), ControlCom One, the HMI panel and the mobile app.

One popup is open at a time. If an element inside a popup has its own popup interaction, the new screen replaces the content of the popup that is already open.

The screen inside a popup is live. Values update as readings arrive and commands are sent exactly as they are on any other screen.

A popup closes when the operator clicks Close in its header, presses Escape, or clicks outside it (unless that is turned off), and when an element runs the Close Diagram Popup interaction. A navigate or slide-out interaction inside the popup closes it first and then runs. Open screen, next to Close in the header, closes the popup and opens its screen full size.

When the viewer is narrower than 640 pixels, the popup fills the viewer and is always modal.

Where a popup is configured

A popup is set up in up to three places.

  1. On the element that opens it. Select the element, go to Interactions at the bottom of its properties, click Add and choose Open Diagram Popup. Pick the screen to open in Select Diagram.
  2. On the screen being opened. Open that screen in the editor and, with nothing selected, expand When opened as a popup in the panel on the right. The section is collapsed by default. What you set here is the screen's default popup settings, used by every element that opens it.
  3. Per button. In the Open Diagram Popup action, turn Override popup settings On to change any setting for that button only. Anything you leave alone keeps the screen's setting. The Position, Shadow and Dim level dropdowns show this as Screen setting (...), with the screen's current value in the parentheses.

Every setting is resolved in the same order: the action's override first, then the screen's setting, then the default.

The Interactions Add menu open on an element of the Emergency Power Overview in the diagram editor, with Open Diagram Popup highlighted
Adding the Open Diagram Popup interaction to an element

The same settings appear under When opened as a popup on the screen and under Override popup settings in the action.

The Generator Faceplate screen in the diagram editor with the When opened as a popup section expanded, showing Width 200, Height 800, Position Top right and Scroll vertically On
The popup settings of the Generator Faceplate screen
SettingDefaultMeaning
Width, HeightThe screen's size, capped at 85% of the viewerSize of the popup content area in pixels.
PositionCenterWhere the popup is anchored: Center, Top left, Top, Top right, Left, Right, Bottom left, Bottom or Bottom right.
Offset X, Offset Y0Pixels to move the popup away from its anchor.
Corner radius8In pixels. Enter 0 for square corners.
ShadowHighNone, Low, Medium or High.
Scroll horizontally, Scroll verticallyOffOn: the screen keeps its own size on that axis and scrolls. Off: the screen is scaled to fit.
Show scrollbarsOnOff hides the scrollbars. The popup still scrolls by wheel, touch and keyboard.
Show headerOnOff removes the title bar, including Close and Open screen.
Show borderOnThe outline around the popup.
ModalOnOn blocks the screen behind until the popup is closed. Off lets the operator keep using the screen behind.
Dim backgroundOnDarkens the screen behind. Forced off when Modal is Off.
Dim levelMediumHow dark the screen behind is made: Light (25%), Medium (50%) or Dark (75%). Disabled when Dim background is Off.
Close on outside clickOnA click outside the popup closes it. Forced off when Modal is Off.

With Modal Off, the Dim background and Close on outside click toggles and the Dim level dropdown are disabled: the screen behind is never dimmed, and a click on it reaches that screen without closing the popup.

Closing a popup from a button

To close a popup from your own button, select the element, go to Interactions, click Add and choose Close Diagram Popup. The interaction has no settings.

It closes the popup that is open. The button can sit inside the popup, or on the screen behind a popup that is not modal. When no popup is open it does nothing, so a screen that carries a close button still behaves normally when it is opened full size.

A legend open as a popup in the bottom-right corner of the Emergency Power Overview, with no header and its own Close button, while the overview behind it is not dimmed
A legend opened with Modal and Show header Off, closed by its own Close button

Passing values to the popup

If the screen being opened declares local properties, the Open Diagram Popup action lists them once a screen is picked. Each one can be given a value for that button: a text, a number, a Variable or a command. They are set the same way as the values of a component instance, the Instance Ref element described in the diagrams overview.

This is what lets one faceplate screen serve many assets. The faceplate reads its title, readings and commands from its local properties, and each button that opens it passes its own title, Variables and commands.

Example: one faceplate for two generators

An Emergency Power Overview shows two generators, EG-1 and EG-2, each with a button that opens the same Generator Faceplate screen.

The faceplate is 200 by 1200 pixels and declares five local properties: title, output, engineHours, startCommand and stopCommand. Its When opened as a popup section sets Width to 200, Height to 800, Position to Top right and Scroll vertically to On. The EG-1 button uses those settings as they are, so the faceplate opens as a 200 by 800 popup in the top-right corner, at full size, and the operator scrolls to reach the bottom of it.

The Generator Faceplate open as a popup in the top-right corner over the Emergency Power Overview, with Generator EG-1 as the title on the faceplate
The faceplate opened from the EG-1 button, with the overview dimmed behind it

The EG-2 button opens the same faceplate with two differences. Override popup settings is On with Position set to Bottom left, so this popup opens in the opposite corner while its size and scrolling still come from the screen. The button also passes its own values, including a different title and a different startCommand, so the faceplate names EG-2 and its Start button starts that generator.

The Open Diagram Popup action of the EG-2 Faceplate button, with Override popup settings On and Position set to Bottom left
The EG-2 button overrides Position and leaves every other setting to the screen

Creating a Diagram covers the editor, binding elements to data and the other interactions an element can carry. The diagrams overview explains Diagrams, Instances and Templates and where local properties fit.

A faceplate is worth opening once its readings are chosen, which is the job of the Analyze stage: use the Data Explorer to compare Variables before binding them. After Visualize comes the Report stage, where Assets Reports turn the same stored data into formatted compliance reports.

Was this page helpful?