Editar

Compartir vía


Notification.Send() Method

Version: Available or changed with runtime version 1.0.

Sends the notification to the client, where it will display in the UI.

Syntax

[Ok := ]  Notification.Send()

Parameters

Notification
 Type: Notification
An instance of the Notification data type.

Return Value

[Optional] Ok
 Type: Boolean
true if the notification was sent; otherwise false If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

Remarks

The Send method displays the content of the notification that is specified by the Message Method.

For more information and a detailed example, see Notifications.

Example

The following code creates a notification and sends it to the client in the local scope.

MyNotification.Message := 'This is a notification';
MyNotification.Scope := NotificationScope::LocalScope;
MyNotification.Send;

Notification Data Type
Get Started with AL
Developing Extensions