In Oracle Forms, there are two ways to display a message. One is using MESSAGE() built-in and the second one is by using ALERTS in Oracle Forms. In this tutorial, you will learn how to display a message in Oracle Forms using MESSAGE and ALERTS.
Display Message in Oracle Forms Examples
1. Using Message command.
The MESSAGE built-in is used to display a message at status bar in Oracle Forms. The following example will show the message at the Status bar in Oracle Forms.
Begin Message('Hello World!'); End;
2. Using Show_Alert command for Window messages.
N := Show_Alert(alert_name);
ALERTS are used to display a message as a modal window in Oracle Forms. The following example will show the message you created for alert infoalert.
declare n number; begin n := show_alert('infoalert'); end;