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

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.

Thanks,
Srinivas
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
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS 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'.

David
Re: Alert message box [message #300987 is a reply to message #300869] Mon, 18 February 2008 22:40 Go to previous message
azamkhan
Messages: 557
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.

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


Current Time: Mon Feb 03 03:01:00 CST 2025