Home » Developer & Programmer » Forms » Can I close all the opened Forms in my application with one statement?
Can I close all the opened Forms in my application with one statement? [message #247784] Wed, 27 June 2007 04:01 Go to next message
sasipalarivattom
Messages: 121
Registered: June 2007
Location: Cochin ( INDIA )
Senior Member
Hi everybody,
I am working on a 9i project.
In my application,there are many forms opened at a time.
Now I want to exit all the opened forms in my application with my "exit application" menu.
when i give EXIT_FORM , it will close my current form and will show previously opened form.
Is there any way to do this?

Thanks in advance.

Regards
Sasi..
Re: Can I close all the opened Forms in my application with one statement? [message #250048 is a reply to message #247784] Sat, 07 July 2007 05:52 Go to previous messageGo to next message
abshrestha
Messages: 5
Registered: April 2005
Location: Kathmandu, Nepal
Junior Member

Hi there,
We had faced the same problem. We solved this as follows:
-------
1. Include Following code in Module wise Menu Logout Trigger
-------------------------------
BEGIN
--Check whether you are exiting from the form or not
IF yes THEN
:GLOBAL.exit_form := 'Y';
END IF;
EXECUTE_TRIGGER('WHEN-WINDOW-ACTIVATED');
END;
---------------------------------------
2. In Each Modules (Forms) include following trigger with code:
Trigger Name: WHEN-WINDOW-ACTIVATED
----------------------------------
IF :global.exit_form = 'Y' THEN
EXIT_FORM;
END IF;
-----------------------------------
Hope this will solve the problem. If you need more clarification, let me know.
Have a nice coding.
Regards,
Anup
Kathmandu, Nepal
Re: Can I close all the opened Forms in my application with one statement? [message #313812 is a reply to message #250048] Mon, 14 April 2008 12:53 Go to previous messageGo to next message
solisdeveloper
Messages: 48
Registered: March 2008
Location: Mexico
Member
Hi everyone:

I have a similar situation, I have created a main Form from wich user's can open diferent Forms. Now I'm trying to create a button that when pushed, closes all opened Forms and not just the current one.

Should I place this very same code in my When-Button-Pushed trigger?

Thanks in advance Smile
Regards!

[Updated on: Mon, 14 April 2008 12:56]

Report message to a moderator

Re: Can I close all the opened Forms in my application with one statement? [message #313840 is a reply to message #313812] Mon, 14 April 2008 18:49 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try it and see what happens.

David
Previous Topic: How to add multilanguage flags on canvas
Next Topic: Use :New & :Old qualifier in Oracle Forms 10g
Goto Forum:
  


Current Time: Fri Dec 06 16:23:33 CST 2024