message irritating me [message #123581] |
Tue, 14 June 2005 00:49 |
kamar_19
Messages: 52 Registered: June 2005 Location: pakistan
|
Member |
|
|
i m working in oracle 8 and developer 6i,when a press commit button ,a message 'no changes to save' appears.how 2 hide this message.i have tried on error trigger and message level.
|
|
|
|
|
|
|
|
|
Re: message irritating me [message #124520 is a reply to message #124410] |
Sun, 19 June 2005 19:33 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Look at the documentation for COMMIT_FORM and it gives the example:
/*
** Built-in: COMMIT_FORM
** Example: If there are records in the form to be
** committed, then do so. Raise an error if the
** commit was not successful.
*/
BEGIN
/*
** Force validation to happen first
*/
Enter;
IF NOT Form_Success THEN
RAISE Form_Trigger_Failure;
END IF;
/*
** Commit if anything is changed
*/
IF :System.Form_Status = 'CHANGED' THEN
Commit_Form;
/*
** A successful commit operation sets Form_Status back
** to 'QUERY'.
*/
IF :System.Form_Status <> 'QUERY' THEN
Message ('An error prevented your changes from being committed.');
Bell;
RAISE Form_Trigger_Failure;
END IF;
END IF;
END;
Try that.
David
|
|
|