Home » Developer & Programmer » Forms » *Stoping alert 'Do you want to save the changes you have made? How to ?'*
*Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85158] Sat, 05 June 2004 01:17 Go to next message
Robin ( Bangladesh)
Messages: 25
Registered: September 2002
Junior Member
Experts,

   A form is used only for update data of a table. After running form user selecting value into a text box from LOV, then 'key_next_item' trigger execute_query using selected value by 'default where caluse'. 

Form is working well, but my problem is when 'key_next_item' trigger executing, an alert appeared with messge 'Do you want to save the changes you have made?'. I want to stop this message.   

I am using developer2000 form Version 6.0.5.0.2

Thanks

Robin

 
Re: *Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85159 is a reply to message #85158] Sat, 05 June 2004 02:15 Go to previous messageGo to next message
Robert Baron
Messages: 7
Registered: May 2002
Junior Member
Use the following syntax:

:SYSTEM.MESSAGE_LEVEL := '25';
COMMIT;
:SYSTEM.MESSAGE_LEVEL := '5';
Re: *Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85163 is a reply to message #85158] Sat, 05 June 2004 03:36 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
It seems that your form is not in enter-query mode.

Regards
Himanshu
Re: *Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85183 is a reply to message #85163] Mon, 07 June 2004 20:12 Go to previous messageGo to next message
Robin ( Bangladesh)
Messages: 25
Registered: September 2002
Junior Member
Thanks, Then how can I enforce my form to enter in query mode ?

Robin
Re: *Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85186 is a reply to message #85183] Mon, 07 June 2004 22:33 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
In your new-form-instance send the Cursor to first navigable item of your First Querable block and then add Enter_Query; just below it.
By default your form will open in Enter-query mode.

Also can you please give me the code which you have written on your key-next-item.
Have you written something there which calls Commit or Rollback?

HTH
Regards
Himanshu
Re: *Stoping alert 'Do you want to save the changes you have made? How to ?'* [message #85187 is a reply to message #85186] Mon, 07 June 2004 22:52 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
You may create an On-error trigger and simply check if Error Code=41009 then Null, this will stop the message.

Regards
Himanshu
Re: * How to enter into query mode ?'* [message #85225 is a reply to message #85163] Thu, 10 June 2004 02:13 Go to previous messageGo to next message
Robin
Messages: 73
Registered: October 2001
Member
Dear Expert;
How can I enforce my form go into 'EnterQueryMode';

Robin
Re: * How to enter into query mode ?'* [message #85228 is a reply to message #85225] Thu, 10 June 2004 02:59 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
If you want it to be opened directly into Enter query mode, just write ENTER_QUERY in your WHEN-NEW-FORM-INSTANCE trigger.

HTH
Regards
Himanshu
Previous Topic: Screen is blinking,if being invoked from a perticular form,HELP NEEDED
Next Topic: nobody answerd me
Goto Forum:
  


Current Time: Mon Jul 08 14:45:00 CDT 2024