DisplayExistsAsync function
- Arguments
- 1
- Return values (Promise object that resolves to a Boolean)
-
- True, if
DisplayNamematches a published display or contextual display available to be opened by this DeltaV Live instance. (The match is case-insensitive.) - False, otherwise.
- True, if
- 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.