Re: FORMS MESSAGES

From: Robert Puerzl <robert.puerzl_at_siemens.at>
Date: 1997/10/06
Message-ID: <3438EE5E.2501_at_siemens.at>#1/1


deepakrajan_at_hotmail.com wrote:
>
> Hi,
>
> In my form application, when saving a transaction,I have used the
> COMMIT_FORM procedure in a When_button_pressed trigger for the save
> button.When I run the form and press the save button,I get the message
> FRM-40401: No changes to save instead of the message FRM-40400:
> Transaction complete:1 record applied and saved.
>
> Is there a way to rectify this.At present,I am overriding this message
> with my own.
>
> Thanks in advance.
>
> Deepak
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet

Hi,

I had a similar problem a few weeks ago, I got the message 'FRM-40405: No changes to apply' when commiting DML's in a when-button-pressed trigger. I wanted to suppress this message, because the message was wrong, there were changes to apply. I made it by settig the System.Message_Level to 5 in the form with the when-button-pressed trigger. But it did not work.

Later I found out that the message did not come from the current form, it came from an other form that was open at the same time. Obviously, in a multiple form application a commit_form command commits in every form that is open at the same time.

So if you control the message either with System.Message_Level or whith an ON_ERROR trigger in every form that could be open at the same time, it would maby manage your problem.

Hope that helps

Robert Puerzl Siemens AG Austria

Robert.Puerzl_at_siemens.at Received on Mon Oct 06 1997 - 00:00:00 CEST

Original text of this message