Implementing a Cancel Button [message #633347] |
Mon, 16 February 2015 12:42 |
|
Asfakul
Messages: 43 Registered: July 2014
|
Member |
|
|
Hello All,
I am new to Oracle forms and trying to implement a "cancel" button which would do the following tasks-
1. Back to the previous canvas(if any) else close the form.
2. Will check if form has any unsaved data and prompt user.
I dont know how to implement. As per my understanding I need to have a ON-BUTTON-PRESSED trigger on CANCEL button inside which I will put Do_Key('Exit_Form') command. But I dont know how to check for unsaved data. Please help.
|
|
|
Re: Implementing a Cancel Button [message #633348 is a reply to message #633347] |
Mon, 16 February 2015 15:24 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Oracle will handle it for you. If you use EXIT_FORM, Oracle will ask you if you want to save your changes.
I never use DO_KEY, I just use plain old EXIT_FORM (or EXIT_FORM(nocommit)).
|
|
|