commit_form Success or Not [message #81076] |
Fri, 03 January 2003 10:42 |
Tyler
Messages: 123 Registered: January 2002
|
Senior Member |
|
|
Hello All,
I am trying to use COMMIT_FORM;
then using IF FORM_SUCCESS THEN -- message (success)
else -- message (no_save).
But it seems to be saying success even if it isn't actually saved???
SUggestions?
Thanks,
T
|
|
|
Re: commit_form Success or Not [message #81085 is a reply to message #81076] |
Sat, 04 January 2003 05:14 |
Anu
Messages: 82 Registered: May 2000
|
Member |
|
|
Hi
This problem has been encountered by me also.
So I suggest that you try 'SYSTEM.FORM_STATUS' instead of 'FORM_SUCCESS'. i.e you can use the following code:
commit_form;
IF :system.form_status = 'QUERY' THEN
message('record saved');
ELSE
message('record not saved');
END IF;
|
|
|