Difference between revisions of "Extensions.HMI.ConfirmDialog"

From emotive
Jump to navigation Jump to search
(Created page with "Category:HMI == Classification == {{ClassificationActivity | ConfirmDialog | Requests dialog, the user's confirmation | Action| OTX HMI extension | Dialog re...")
 
Line 3: Line 3:
 
{{ClassificationActivity | ConfirmDialog | Requests dialog, the user's confirmation | [[Action]]| [[HMI|OTX HMI extension]] | [[Dialog related actions]] | - | - }}
 
{{ClassificationActivity | ConfirmDialog | Requests dialog, the user's confirmation | [[Action]]| [[HMI|OTX HMI extension]] | [[Dialog related actions]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ConfirmDialog(MessageType messageType);
+
Hmi.ConfirmDialog(StringTerm, StringTerm, MessageType, ConfimationTypeVariable);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 18: Line 18:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ConfirmDialog(messageType);
+
Hmi.ConfirmationType ConfirmationType1 = @ConfirmationTypes:YES;
 +
 
 +
Hmi.ConfirmDialog("Message", "Title", @MessageTypes:INFO, ConfirmationType1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 06:50, 10 February 2015

Classification

Name ConfirmDialog
Short Description Requests dialog, the user's confirmation
Class Action
Extension OTX HMI extension
Group Dialog related actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Hmi.ConfirmDialog(StringTerm, StringTerm, MessageType, ConfimationTypeVariable);

Description

The ConfirmDialog activity shows a dialog, the user's confirmation requests. The selection of buttons and decorations can be configured by a parameter. ConfirmDialog is generally used to apply user acceptance before performing a procedure.

Properties

Name Data Type Class Default Cardinality Description
MessageType MessageType Value @MessageType:INFO [0..1] Message type = {INFO|WARNING|ERROR|YESNO_QUESTION|YESNOCANCEL_QUESTION}.
Result Integer Variable - [0..1] The variable where the user's selection is stored.

OTL Examples

Hmi.ConfirmationType ConfirmationType1 = @ConfirmationTypes:YES;

Hmi.ConfirmDialog("Message", "Title", @MessageTypes:INFO, ConfirmationType1);

See also

InputDialog
ChoiceDialog
ShowDocumentDialog