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

Characteristics of a message shown in a ConfirmDialog More...

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

Public Attributes

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

Detailed Description

Characteristics of a message shown in a ConfirmDialog

MessageType is an enumeration type describing the characteristics of a message shown in a ConfirmDialog.

Order Relation
MessageType values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value INFO = 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.



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 MessageTypes enumeration (smallest index is 0)Integer val = ToInteger(@MessageType:INFO); // Returns 0
ToFloatUndefined (should not be used)
ToStringReturns the name of the enumeration valueString s = ToString(@MessageType:INFO); // Returns "INFO"
ToByteFieldUndefined (should not be used)

Sample

HMI.MessageType MessageTypeVariable = @MessageType:INFO;

Member Data Documentation

◆ init

MessageTypeLiteral OpenTestSystem.Otx.Extensions.HMI.DataTypes.MessageType.init

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

OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::INFO
@ INFO
OpenTestSystem.Otx::DiagManager::OtxDiagApi::DataTypes::OtxSeverityTypes::WARNING
@ WARNING
OpenTestSystem.Otx::DiagManager::OtxDiagApi::DataTypes::OtxSeverityTypes::ERROR
@ ERROR
OpenTestSystem.Otx.Extensions.HMI.DataTypes.MessageTypes.YESNOCANCEL_QUESTION
@ YESNOCANCEL_QUESTION
Message displayed by the ConfirmationDialog is a question which does not require a response.
OpenTestSystem.Otx.Extensions.HMI.DataTypes.MessageTypes.YESNO_QUESTION
@ YESNO_QUESTION
Message displayed by the ConfirmationDialog represents a question answerable by "yes" or "no".