Home » Developer & Programmer » Forms » Alert message box
Alert message box [message #300869] Mon, 18 February 2008 07:01 Go to next message
Messages: 329
Registered: August 2006
Senior Member

I have an alert type 'CAUTION'.
I am showing to the user "Do you want to save the changes" with YES/NO button.
But it is allowing the users to click on close of the message window.Close mark "X" at the alert window.
How can i handle so that users should press YES/NO button but not close button of the alert window.

Re: Alert message box [message #300960 is a reply to message #300869] Mon, 18 February 2008 18:18 Go to previous messageGo to next message
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Test the return value and if it is not what you want then ask them again.

Alternatively, trap the value returned when 'x' is pressed and assume that this means 'no'.

Re: Alert message box [message #300987 is a reply to message #300869] Mon, 18 February 2008 22:40 Go to previous message
Messages: 548
Registered: August 2005
Senior Member
Dear Friend,

You can do this by checking the alert button value which in your case should be "ALERT_BUTTON1" OR "ALERT_BUTTON2". If none of the value is return then the user must have pressed the Closed button.

Azam Khan
Previous Topic: synchronize function
Next Topic: How to view an image file in forms 10g
Goto Forum:

Current Time: Wed Oct 26 16:10:31 CDT 2016

Total time taken to generate the page: 0.13852 seconds