OTX Reference  
OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationType Class Reference

The button-choice of a user dismissing a ConfirmDialog More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationType:
Inheritance graph

Public Attributes

ConfirmationTypeLiteral init
 Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time More...
 

Detailed Description

The button-choice of a user dismissing a ConfirmDialog

ConfirmationType is an enumeration type describing the button-choice of a user dismissing a ConfirmDialog. The information may later be used to find out which button was clicked for confirmation of the dialog.

Order Relation
ConfirmationType values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value YES = 0:


Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.

@ConfirmationType:YES|NO|CANCEL



Conversion terms
The following table shows the rules for conversion to another data type:

ConversionResultSample
ToBooleanUndefined (should not be used)
ToIntegerReturns the index of the value in the ConfirmationTypes enumeration (smallest index is 0)Integer val = ToInteger(@ConfirmationType:YES); // Returns 0
ToFloatUndefined (should not be used)
ToStringReturns the name of the enumeration valueString s = ToString(@ConfirmationType:YES); // Returns "YES"
ToByteFieldUndefined (should not be used)

Sample

HMI.ConfirmationType ConfirmationTypeVariable = @ConfirmationType:YES;

Member Data Documentation

◆ init

ConfirmationTypeLiteral OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationType.init

Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time

OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationTypes.NO
@ NO
Confirmation by "No" button.
OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationTypes.YES
@ YES
Confirmation by "Yes" button or "OK" button.
OpenTestSystem.Otx.Extensions.HMI.DataTypes.ConfirmationTypes.CANCEL
@ CANCEL
Confirmation by "Cancel" button.