My form is based on the find query block.
I am having a QUERY_FIND block and on clicking the find button it will open another window which consist data in three level suppose A,B,C, so for this i have created three block(A,B,C)
I have used a WHEN-BUTTON-PRESSED trigger in find button and the trigger contain three onetime_where condition according to which it will display record in the above three blocks.
On pressing the find button the cursor by default moved to C block (which is the last block)
So when I am trying to close the window the I have to press BOX[X] three times.
On pressing once the cursor is moving from C block to B block, the on pressing second time the cursor is moving from B block to A block and then on pressing third time it is getting closed.
Any suggestion regarding it is highly appreciated.
If any part of the application is in an "Enter-Query" mode you will not be able to exit until that mode has been released. So, if you execute EXIT_FORM while in this mode, the result will only be that Enter-Query mode is terminated. You would need to execute EXIT_FORM again to exit the form completely. So, in a WHEN-WINDOW-CLOSED trigger, try this code:
-- This supresses the Enter-Query mode cancelled dialog :System.Message_Level := '10'; -- This cancels Enter-Query mode exit_form; -- This exits the form exit_form;