Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Oracle forms 6i ( Unable to close the window even when the triggers are coded in when-window-closed and key-exit')

Posted on 2004-08-19
Medium Priority
Last Modified: 2012-05-05
Hi guys,
         My problem is i am unable to close the window when i click the close button on the window.Instead it pops up another window with the same record and able to close that window only when i hit F-4 button.When i try the same button F-4 ,i am not able to close the form.

   I am not sure where i went wrong.Kindly take a look.

this is the code i put in WHEN-WINDOW-CLOSED:

and in Key-exit ;
      /* cancel Enter-Query mode */
  End If;

Please if u could let me know what i should do about this ASAP.

Question by:babunagendra
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Expert Comment

by:Mark Geerlings
ID: 11842880
I don't recognize the package "app_standard".  Is that a custom package in your application?  What does the "event" procedure in that package do?

Our Forms have a WHEN-WINDOW-CLOSED trigger that is simply:

and that works to close the Form (and the window) as intended.

Author Comment

ID: 11843057
Hi ,
    the package "app_standard" is in CUSTOm.pll
LVL 35

Expert Comment

by:Mark Geerlings
ID: 11843616
OK, and custom.pll is what?  Is that something unique to your application?

If you comment out the call to:
so your trigger WHEN-WINDOW-CLOSED looks like:
--  app_standard.event('WHEN-WINDOW-CLOSED');

then compile the Form, how does it work?  Does it then close as expected?  If so, something is happening in: app_standard.event
that is giving you the non-standard behavior you see.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 11845152
it doesn't work ? It still doesn't close.Trying to take a look at what's happening in app_standard.event?


Expert Comment

ID: 11845747
Did you verify that the trigger WHEN-WINDOW-CLOSED is executed when you click on the X (close window) on the upper right corner of the window?
You could add some message('...') in the trigger to see what and where it is doing?
If you have form-level ON-ERROR trigger, you might want to suppress it by renaming it to ON_ERROR just in case it might have intercepted errors and not displayed to the user.

Author Comment

ID: 11846705
I tried it and i could see the message .I couldn't know where it is going wrong.
LVL 22

Expert Comment

by:Helena Marková
ID: 11849484
I think that it is about Oracle Application (E-Business 11i). It seems that there are validations or something else there and that caused the problem.

Accepted Solution

annamalai77 earned 1500 total points
ID: 11849673
hi there

did u check whethere the window which is popping up has any required columns. if so then u will get this problem when ur in insert mode.

also as our friend, suggested, open the form in the designer mode and run the form with debug messages enabled in the tools->preferences->runtime-> check the debug messages.

and see what happens ie which trigger fires when u click the close button. i think this should solve ur problem.


Author Comment

ID: 11854510
Thanks to u all .I finally got the solution.

Thank u.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question