I am using exit_form to close a form. But, when I call that form from another form and then press the exit key, it returns to the form which called it. Example: if form_a calls form_b. In form_b trigger exit_forms triggers, it will call form_b. Well, I need to exit all opened form.
Best How To :
You need to use then new_form statement instead of open_form or call_form:
new_form exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Oracle Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms releases memory (such as database cursors) that the terminated form was using.Oracle Forms runs the new form with the same Run form options as the parent form. If the parent form was a called form, Oracle Forms runs the new form with the same options as the parent form.NEW_FORM can be instructed to continue the database transaction, rollback to the current save point or perform a full rollback. It can also be instructed to open the new form in query only mode and to share or not share library data.