ftos.context.response.setMessage
IMPORTANT!
Starting with v24.3.0, this is renamed from setMessage to ftos.context.response.setMessage.
Starting with v24.3.0, this is renamed from setMessage to ftos.context.response.setMessage.
Displays a notification or alert message at the bottom of the screen after the transaction completes.
NOTE
If a transaction includes multiple
If a transaction includes multiple
ftos.context.response.setMessage calls, only the last one will be executed.This is a routes method for business service components.
Syntax
Copy
function ftos.context.response.setMessage(message: string, isSuccess: boolean): void
| Parameter | Description |
|---|---|
message
|
Message to be displayed on screen. |
isSuccess
|
Optional. Default value is false.
|
Examples
In this example, we display a Success! notification message.
Copy
ftos.context.response.setMessage("Success!", true);
In this example, we display a Watch out! warning message.
Copy
ftos.context.response.setMessage("Watch out!", false);