ftos.context.response.setMessage

IMPORTANT!  
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 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.
  • true – Displays the message as a notification (green background, the message disappears after a few seconds).
  • false – Displays the message as an alert (yellow background, the message must be closed manually).

Examples