LINK

The LINK function is only available for use in client expressions.

The LINK function is used to modify a URL that is returned by a property of a database item. It modifies the URL so that it includes the system on which the item is located. You can use the function, for example, with URLs that are contained in hyperlinks in Mimics. Each URL contains the path, but not the system, of the database item that is the target of the link.

As URLs do not include the system, you use the LINK function when a Mimic on one system contains a hyperlink to a database item on another system. The LINK function modifies the URL in the hyperlink to include the system. If the LINK function is not used, the hyperlink will only reference a local database item (an item that is on the same system as the Mimic).

Database items have several properties that return a URL that can be used by hyperlinks on Mimics.

For more information on hyperlinks, see the 'Creating a Hyperlink' topics in the ClearSCADA Guide to Mimics.

Function Name

LINK

Description

Modifies a URL returned as a property of a database item so that the URL contains the system on which the database item is stored. The LINK function is only for use in client expressions.

Arguments

LINK("Tag")

Where "Tag" is a reference to one of the following properties:

  • ObjectLink
  • HelpViewLink
  • AlarmViewLink (only available for objects that can have alarms)
  • DefaultViewLink (only available for Groups)

The Tag must be enclosed in double quotations " ".

Returns

STRING

The string is a URL that has been modified to include the system on which the database item is stored.

Example:

A Mimic named 'Site 1' is stored on a System named 'Northern Region'. It contains 2 hyperlinks—1 hyperlink to a Mimic named 'Pipeline 6' that is also stored on the 'Northern Region' system, and 1 hyperlink to a Mimic named 'Alarm Display' that is stored on the 'North West Region' system.

The hyperlink to the 'Pipeline 6' Mimic is created by animating the PickParam property of an item on the 'Site 1' Mimic with the following expression:

".Pipeline 6.ObjectLink"

The expression consists of the location of the hyperlink target (the display that is shown when the hyperlink is selected), followed by ObjectLink. When the item is selected (in Run Mode), the 'Pipeline 6' Mimic will be displayed.

The hyperlink to the 'Alarm Display' Mimic is created by animating the PickParam property of an item on the 'Site 1' Mimic with the following expression:

LINK( "North West Region:Alarm Display.ObjectLink" )

The expression for the hyperlink is different to that of the 'Pipeline 6' hyperlink as the client needs to modify the URL returned by the ObjectLink property. When the client modifies the URL, it includes the name of the other system in the address. To achieve this, the LINK function is used and the location of the target display (Alarm Display) includes the name of the system on which it is stored (North West Region).

Further Information

Expressions for PickType and PickParam Animations in the ClearSCADA Guide to Mimics.


Disclaimer

ClearSCADA 2017 R3