Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DO_KEY('EXIT_FORM') does not fire KEY-EXIT trigger for button

SebaVastaApr 23 2021

We have one form which has an exit button to exit the application (i.e. Menu form).
This exit button has WHEN-BUTTON-PRESSED trigger with a DO_KEY('EXIT_FORM'); line. It has only this line of code in the WBP trigger.
There is also a KEY-EXIT trigger that is attached to this button. This fires correctly and shows an alert to the user asking "Do you wan to exist the system or not?".
This works fine.
Now I want to do the same for one particular form. Users want to show an alert "Do you want to exist screen?" alert when user presses exit button.
In this specific screen the the exit button only has the WBP trigger. It also has the DO_KEY('EXIT_FORM'); line. It did not have a KEY-EXIT trigger.
So like the menu form I added a KEY-EXIT trigger.
Problem is, this KEY-EXIT trigger does not fire.
I checked the properties of the menu form button and triggers against the specific screens triggers and all are the same.
Why is this happening? Why is the KEY-EXIT does not fire for the specific screen?
The exit button is in its own button canvas in both the menu form and the specific screen.
PS: We are using Forms [64 Bit] Version 11.1.2.2.0.

Comments
Post Details
Added on Apr 23 2021
3 comments
1,908 views