Dialog Data Type

Version: Available or changed with runtime version 1.0.

Represents a dialog window.

The following methods are available on the Dialog data type.

Method name Description
Confirm(String [, Boolean] [, Any,...]) Creates a dialog box that prompts the user for a yes or no answer. The dialog box is centered on the screen.
Error(String [, Any,...]) Displays an error message and ends the execution of AL code.
Error(ErrorInfo) Displays an error message and ends the execution of AL code.
LogInternalError(String, DataClassification, Verbosity) Log internal errors for telemetry.
LogInternalError(String, String, DataClassification, Verbosity) Log internal errors for telemetry.
Message(String [, Any,...]) Displays a text string in a message window.
StrMenu(String [, Integer] [, String]) Creates a menu window that displays a series of options.

The following methods are available on instances of the Dialog data type.

Method name Description
Close() Closes a dialog window that has been opened by the OPEN method.
HideSubsequentDialogs([Boolean]) Specifies that subsequent child dialogs are not shown.
Open(String [, var Any,...]) Opens a dialog window.
Update([Integer] [, Any]) Updates the value of a '#'-or '@' field in the active window.

See Also

Getting Started with AL
Developing Extensions