OTX Reference  
OpenTestSystem.Otx.Extensions.HMI.Actions.ConfirmDialog Class Reference

Confirmation dialog More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.HMI.Actions.ConfirmDialog:
Inheritance graph

Public Attributes

MessageTypeTerm messageType
 Cardinality [0..1]
It defines additional decorations that can be shown when displaying this dialog. This value is used to show a corresponding icon, or activate a LED, depending on the runtime system. More...
 
ConfirmationTypeVariable result
 Cardinality [0..1]
Indicates a variable where the selection from the user will be stored. Results can be one of: 0 = YES, 1 = NO, 2 = CANCEL. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Extensions.HMI.Actions.Dialog
StringTerm message
 Cardinality [0..1]
If the runtime system contains the capability to show a message as part of the display, the String will be shown. More...
 
StringTerm title
 Cardinality [0..1]
If the runtime system contains the capability to show a dialog box with a Title bar, the String will be shown. It is assumed that this String will be shown with more prominence than the message parameter. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Confirmation dialog

The ConfirmDialog activity shows a screen asking for user confirmation. Confirmation dialogs are typically used to ask the user for acceptance before performing a procedure. Depending on the type of procedure to execute, it is possible to select different levels of severity.

Syntax
HMI.ConfirmDialog(StringTerm message = "", StringTerm title = "", MessageTypeTerm messageType = @MessageType:INFO, ConfimationTypeVariable result = NULL);
MessageTypeTerm messageType
Cardinality [0..1] It defines additional decorations that can be shown when displaying this dialog....
Definition: HMI.cs:1384
ConfirmationTypeVariable result
Cardinality [0..1] Indicates a variable where the selection from the user will be stored....
Definition: HMI.cs:1394
StringTerm title
Cardinality [0..1] If the runtime system contains the capability to show a dialog box with a Title ba...
Definition: HMI.cs:845
StringTerm message
Cardinality [0..1] If the runtime system contains the capability to show a message as part of the dis...
Definition: HMI.cs:855
Examples
// Local Declarations
HMI.ConfirmationType ConfirmationType1 = @ConfirmationType:YES;
// Flow
HMI.ConfirmDialog("Message", "Title", @MessageType:INFO, ConfirmationType1);
@ YES
Confirmation by "Yes" button or "OK" button.

Member Data Documentation

◆ messageType

MessageTypeTerm OpenTestSystem.Otx.Extensions.HMI.Actions.ConfirmDialog.messageType

Cardinality [0..1]
It defines additional decorations that can be shown when displaying this dialog. This value is used to show a corresponding icon, or activate a LED, depending on the runtime system.

◆ result

ConfirmationTypeVariable OpenTestSystem.Otx.Extensions.HMI.Actions.ConfirmDialog.result

Cardinality [0..1]
Indicates a variable where the selection from the user will be stored. Results can be one of: 0 = YES, 1 = NO, 2 = CANCEL.