DisplayExistsAsync function

Verifies that the specified display name matches the name of a published display or contextual display available to be opened by this instance of DeltaV Live.
Arguments
1
Argument Description
DisplayName A literal or graphics expression that resolves to the name of a display or contextual display.
Return values (Promise object that resolves to a Boolean)
  • True, if DisplayName matches a published display or contextual display available to be opened by this DeltaV Live instance. (The match is case-insensitive.)
  • False, otherwise.
Syntax
DL.DisplayExistsAsync(DisplayName)
Examples
let dtDisplayName = <dynamically construct a display name>;
if (await DL.DisplayExistsAsync(dtDisplayName)) {
     // the specialized detail display available, so use it
     DL.OpenDisplayAsync(dtDisplayName);
} else {
     DL.OpenDisplayAsync(DL.DN("GenericDetail"));
}
Note:
It is recommended that you use the DL.DN() function for the display name to enable display and display frame rename tracking.