編輯

共用方式為


Dialog Data type

Version: Available or changed with runtime version 1.0.

Represents a dialog window.

Static methods

The following methods are available on the Dialog data type.

Method name Description
Confirm(Text [, 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(Text [, 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(Text, DataClassification, Verbosity) Log internal errors for telemetry.
LogInternalError(Text, Text, DataClassification, Verbosity) Log internal errors for telemetry.
Message(Text [, Any,...]) Displays a text string in a message window.
StrMenu(Text [, Integer] [, Text]) Creates a menu window that displays a series of options.

Instance methods

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(Text [, var Any,...]) Opens a dialog window.
Update([Integer] [, Any]) Updates the value of a '#'-or '@' field in the active window.

Get Started with AL
Developing Extensions