App.OpenWindowOnHead

The OpenWindowonHead application function is for use on a Multi-Monitor setup. It sets the script to open a display in a new document window on another monitor. The target Window Container is represented by a specified head number (see Assign a Head Number to a Window Container in the ClearSCADA Guide to Client Administration).

For example, you could create a script that, when executed, causes an object property Form to display as a new document window in a Window Container on another monitor.

Syntax

App.OpenWindowOnHead Head, URL

Description

The OpenWindowOnHead application function opens a new document window when executed. The document window opens in the Window Container that is assigned the specified head number.

Arguments

Head {integer}

The head number assigned to the Window Container in which the new document window will be displayed. Each Window Container is assigned a head number in the Startup Configuration File (see Configure a Multi-Monitor Setup).

URL {string}

The URL of the display that is opened. The target display can be a Mimic, Trend, Report, Form or any other type of display.

For Mimic scripts, the URL has to use the ClearSCADA address format:

SCX:////<Class>/<Database Item>.

For Alarm Banner scripts, the URL has to use the ClearSCADA address format:

SCX:///<System Name>/<Class>/<Database Item>

This is because the Alarm Banner is not associated with a system, and so any hyperlinks have to specify the system that contains the display that is to be shown in a new window.

Returns

None.

Example:

This example displays a Mimic as a new document window in the Window Container assigned a head value of 2:

App.OpenWindowOnHead 2,"SCX:////CMimic/.System Overview"

Where:

  • App. is the object being referenced
  • OpenWindowOnHead is the name of the application function being used
  • 2 is the head number assigned to the Window Container in which the Mimic will be displayed
  • "SCX:////CMimic/.System Overview" is the URL of a display, in this case, the 'System Overview' Mimic.

Disclaimer

ClearSCADA 2017 R2