SETSTATUSLINE keyword

Applies to

Event handlers

Property: Event handler parameters

Description

In the web client, this keyword causes the success and error messages from an event handler to display in a "toast" pop-up format. With the "toast" pop-up format, the message disappears automatically after 5 seconds. The user is not forced to click a button to make the message disappear. If the user wants to make it disppear before that, the user can click inside the message box.

In the Windows client, this keyword causes the success messages and error messages from an event handler to display in the Status bar rather than in a message box.

Syntax

SETSTATUSLINE( SUCCESS )

or

SETSTATUSLINE( )

Setting Description
SUCCESS In the web client, this setting causes the success message to display in a "toast" pop-up format.

In the Windows client, this setting causes the success message to display in the Status bar.

In both clients, this setting causes the error message to display in a message box that the user must close manually.

To cause both success and error messages to display in a "toast" pop-up or the Status bar, omit this setting.

[Blank] In the web client, this setting causes both the success message and the error message to display in a "toast" pop-up format.

In the Windows client, this setting causes both the success message and the error message to display in the Status bar.

This example causes the success message to display in the "toast" pop-up or the Status bar. The error message in both clients is displayed in a message box.

Acme.InvoiceHeaders.RecurringInvoice(PARMS(VAR V(PostThroughDate),MESSAGE))ERRORMESSAGE(%b) 
 SUCCESSMESSAGE(mProcessCompletedSuccessfully)SETSTATUSLINE(SUCCESS))