My Oracle Support Banner

Pressing X In The Alert Box Makes the Code Under Button Three to Fire (Doc ID 279661.1)

Last updated on OCTOBER 09, 2023

Applies to:

Oracle Forms - Version 10.1.2.0.2 and later
Oracle Forms for OCI - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

There are three buttons in the alert ('YES' 'NO' and 'CANCEL')
After pressing the X button, the code for the third button is fired.
For ex: suppose the code under the button is as follows:

DECLARE
al_id Alert;
al_button NUMBER;
BEGIN
al_id := Find_Alert('alert2');
IF Id_Null(al_id) THEN
Message(' alert does not exist');
RAISE Form_Trigger_Failure;
ELSE
al_button := Show_Alert(al_id);
IF al_button = ALERT_BUTTON3 THEN
MESSAGE('ALERT BUTTON 3');
MESSAGE(' ');
END IF;
END IF;
END;

When pressing the 'X' button of the alert, the form shows the message
'alert button 3' even if the third button ('cancel') is not pressed.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.