Home » Developer & Programmer » Forms » Record not saved despite Transaction Successful message (Oracle Forms)
|
Re: Record not saved despite Transaction Successful message [message #669178 is a reply to message #669175] |
Sat, 07 April 2018 03:15   |
 |
Littlefoot
Messages: 21824 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
IF-THEN-ELSE you wrote is useless. COMMIT affects the whole form, you can't restrict it to one block.
COMMIT, i.e. COMMIT_FORM analyses the form, searching for changes you might have made. If you changed something, it'll save it into the database. However, if you did "manual" modifications (such as INSERT INTO or UPDATE in your form triggers or procedures), COMMIT will conclude that nothing changed and that there's nothing to be saved, and will inform you with the "No changes to save" message.
STANDARD.COMMIT bypasses all analyses and does what you said: commit, right now!
Therefore,
a) get rid of your own code and use built-in Forms committing (such as F10, Ctrl + S, yellow floppy disk toolbar icon)
b) if you must, use STANDARD.COMMIT
|
|
|
|
|
|
|
|
|
|
|
Re: Record not saved despite Transaction Successful message [message #669252 is a reply to message #669250] |
Tue, 10 April 2018 02:51  |
cookiemonster
Messages: 13967 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Well you're doing something wrong.
But since you've told us virtually nothing about what your form does it's not possible for us to even guess what.
If you want help you're going to have to describe what you have - what blocks you've got and whether they are database blocks. What triggers are involved and if you've got hard-coded inserts/updates where they are in the code and what they do.
|
|
|
Goto Forum:
Current Time: Thu Jun 05 02:53:19 CDT 2025
|