How to supress FRM:40405 no changes to save

Guy,
How do I supress the forms runtime message
FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .

I agree that you shouldn't cover up potential problems. I didn't mean to suggest that. I think there can be valid reasons for suppressing messages sometimes.
For example, I've used :SYSTEM.MESSAGE_LEVEL := '5'; before to suppress FRM-40401 or FRM-40405 - can't remember which one, it's been a while. In my case I was using exec_sql in forms to retrieve data from a DB2 table and insert it into an Oracle table. In this case forms didn't recognize that work was actually being done and would give the FRM-40401 or 40405 error at the end of the process, even though the records had been successfully inserted.

Similar Messages

  • Supressing FRM:40405 no changes to save

    Guy,
    How do I supress the forms runtime message
    FRM:40405 no changes to save, I get this message when ever I press the save button irrespective of whether the records are inserted or changed .

    Abdetu wrote:
    Thanks Tony for reply,
    I tried this in the ON-Error
         IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
              ELSE
         alert_message := message_type||'-'|| To_Char(error_code) || ': ' || error_text;
              BEGIN
              select msg_desc
              into   alert_message
              from   cde_message
           where  msg_code = temp1;
              EXCEPTION
                   WHEN OTHERS THEN NULL;
           END;
         END IF;
         Regards,
    Abdetu..Using WHEN OTHERS THEN NULL is a huge bug in your code.
    If you even gonna use when others, you always use it with RAISE FORM_TRIGGER_FAILURE, other than that you're not displaying the error messages for the rest of the errors and you're not raising FORM_TRIGGER_FAILURE.
    Your code should look like this:
    IF ERROR_TYPE = 'FRM' AND ERROR_CODE = 40405 THEN NULL;
    ELSE
      MESSAGE(ERROR_TYPE||'-'||ERROR_CODE||': '||ERROR_TEXT);
      RAISE FORM_TRIGGER_FAILURE;
    END IF;Tony

  • FRM-40405 (No Changes to apply)

    When i open a form through menu and save record i am getting the message 'FRM-40405 No changes to apply'.
    I am not geeting the error while running the form independently i.e not calling through menu. commit_form built is used in key-commit trigger.
    I am using OAS 4.0.8 and Forms 6i with Patch 1.

    I think in this case, you issued a commit without actually changing any data, so the commit was not necessary. Many Times I had to do this and did not want to see this error.
    What you can do to overcome this is to create a forms 'on error' trigger. Then trap the error like follows -
    DECLARE
    errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN
    IF errnum = 40301 THEN
    Message('Your search criteria identified no matches... Try Again.');
    ELSIF errnum = 40350 THEN /* no records found */
    null;
    ELSIF errnum = 41026 THEN /* FIELD OUTPUITING*/
    Message('This field is calculated');
    ELSif errnum=40401 then /* double commit somewhere */
    null;
    ELSif errnum=40505 then /* double commit somewhere */
    null;
    ELSif errnum=41050 then /* Record has been saved already */
    null;
    ELSIF errnum=41008 then /* Undefined Keys */
    null;
    ELSIF errnum=40100 then /* beyond first record */
    null;
    ELSIF errnum=40200 then /* field protected against update */
    null;
    ELSIF errnum=40352 then /* beyond last record */
    endif;

  • How can i hide frm-40401 no changes to save

    hi all,
    i would like to hide frm-40401 no changes to save
    i create a (form level trigger/block level) to hide a built in message
    ON-MESSAGE
    declare
    msgnum number := message_code;
    begin
    IF msgnum = 40401 THEN
    Message('my own message.');
    end if;
    end;and still message appear what can i do?
    Thank's all
    Edited by: Ahmed_Arafa on Jan 20, 2012 9:40 AM

    Ahmed_Arafa wrote:
    hi all,
    i would like to hide frm-40401 no changes to saveCreate a form level trigger named Pre-Form
    and write the following code
    :SYSTEM.MESSAGE_LEVEL := 5;Hope this will help you

  • FRM-40401 No changes to save  error

    Hi,
    I have updated one table from form by writing update statement on the when-button-pressed triger.This update statement is doing its job fine and the table is updated.but iam finding 'FRM-40401: No Changes to save 'message in my console . Please tell me why it is coming when changes are made into tables and wat should i do to avoid this . i have written on-error trigger on form level to suppress this message.What effect itcan have on my working.
    Kindly take it on urgent basis.
    regards,
    rajesh

    Usually in Forms, you do not write SQL update statements to update your table. Instead, you create a base-table block, fetch the rows into the block, make your changes, and then commit. Forms automatic processing takes over and creates the update statements for you.
    What you have done is bypassed the default automatic processing, and Forms is complaining. I would try to re-do the form and use a base-table block.

  • FRM-40405, No Changes To Apply Message

    Environment : Forms 9i, Web, 9iAS
    Whenever a transaction is made, The "No changes to Apply" message is get displayed and then the transaction is applied and saved message appears.
    How can i get ride to the First message?
    ON-ERROR trigger containss the following code
    if error_type = 'FRM' and error_code = 40405 then
         null;
    else
    message(error_code ||':'||error_text,no_acknowledge);
    end if;
    Eben then, No change to Apply message Appears.

    This is happening for all the Forms in our Application Just a guess...
    Sounds like you are running your forms from a "master form" using OPEN_FORM(form_name, ACTIVATE, NO_SESSION); This will do the commit on both the called form and the calling form (and that's where the FRM-40405 comes from). You can use OPEN_FORM(form_name, ACTIVATE, SESSION); but this will create a new session for each form being called.
    Try the CALL_FORM built-in instead.
    Hope this helps (if my guess is wrong, forget it:)
    Gerald Krieger

  • How to suppress FRM-40405

    Hi,
    How can I suppress FRM-40405, I already used System.Message_level :='10' before the COMMIT statement, but still it is coming, while saving.
    Thanks in advance.
    Rizly

    Do like Kris said. Also if you would search the forum, you will find solutions for this problem.

  • FRM-40405: No change to apply.  Error Alert.

    The first time a detail is updated this message does not display.
    The second time a detail is updated, this message displays when the form_commit (or COMMIT) trigger fires.
    The alert fires even when a new master record with new details has been queried.
    A form level or block level ON-ERROR trigger does NOT intercept this alert. It does intercept other errors like navigation past the first record error or the out of range error.
    Where is this error generated? Is it caused because we are using a ref-cursor stored procedure?

    That message is issued as a result of a Post; command, not a commit.
    Look for a stray post command in your form.
    And it can ONLY be handled by an on-error trigger. Please post the code in your on-error trigger.
    Also, do not create an On-Error trigger at the block level. (That may be why your trigger is not intercepting it.) From the Forms On-line help:
    In most cases, On-Error triggers should be attached to the form, rather than to a block or item. Trapping certain errors at the block or item level can be difficult if these errors occur while Form Builder is performing internal navigation, such as during a Commit process.

  • How do I NOT save a file every time I open a PDF file, open an attachment, etc.? I know how to set the option to change the save location, but in some cases I just want to VIEW not SAVE a file that I read while browsing

    I don't want Firefox to save a copy on my hard disk of every attachment, PDF, etc. that I open while browsing. How do I make this happen?

    Firefox needs to download and save a file before passing it to a plugin.
    You can set the Boolean pref <b>browser.helperApps.deleteTempFileOnExit</b> to <i>true</i> on the <b>about:config</b> page to remove such files.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • FRM-40401:No changes to save

    When I write insert or update statement manually the statement is getting executed.But I am getting error as in subject line.
    I dont want to see that error message.If row inserted/updated I want to show message 'One row inserted/updated'.
    Please can any body tell about this by using a simple dept table.
    Actually I am making database item 'no' in property palate.
    I am a beginer.

    If you do the insert in plsq code Forms does not know about the change -- as opposed to when you use the built in functionality by inserting a record thru a database block -- so it gives you this error.
    One way of avoiding the error is to have a hidden database block and make the insert there with PLSQL code.

  • How to suppress message level on FRM-40405 ?

    Dear members,
    I want to hide "FRM-40405 No changes to apply". used the following
    :system.message_level := 25;
    commit;
    :system.message_level := 5;but still the same message, where am I wrong?
    regards:

    thanks for your reply,
    here is the complete scenario,
    I have a form "FORM1" from which, I am opening another form "FORM2". using the following code.
         OPEN_FORM('FORM2.FMX', ACTIVATE, NO_SESSION, LIST_ID);when I open the FORM2 and update a field and press exit button it alter " do you want to save changes" on pressing 'Yes" it 2nd time show alter "FRM-40405 no changes to apply".
    I want to suppress this alert.
    when using open_form with SESSION it don't give any alert.
    here I am confused that the alert is coming from where? from FROM1 or FORM2?
    I tried all the possible techniques to suppress this alert but couldn't be able to suppress.
    Regards:

  • FRM-40405

    After moving from forms 4.5 to 6i, I get the message "FRM-40405 No changes to apply" on PL/SQL commits. How can I get rid of the message. I have tried setting system.message level to 20 but still get the warning message.

    The level of message "FRM-40405 No changes to apply" is 5, so you have to set system.message level to 5:
    :System.Message_Level := '5';
    Helena
    null

  • 2 Problems Form Wont Run Without DataBlock / “FRM-40405”

    Using Oracle8i, Form6i & Report 6i.
    Requirement
    1.     How to run form with out DataBock
    2.     Avoid rising of Error “FRM-40405 No Change to Apply”
    Problem Details
    Developed an index / welcome form with link of all other reports & forms.
    But this form won’t open unless I include (a DataBlock or dataitems in a non-DatabaseBlock).
    If I include a DataBlock it give following error:-
    “FRM-40405 No Change to Apply” when ever I open linked forms/reports and when ever I enter new record in link forms.
    This error won’t stop/corrupt any process but rise on every above instance.
    Wishes
    Jawad

    You should be able to run a form without a base table block. You do need an item (can be a non base table item) to which the cursor can navigate. This can be a text item, button, etc. If you don't want the item to show on the form, make it a very small size (height and width both equal to 1).

  • No changes to save error message

    Hello All,
    I am using Oracle forms and db 10g. I want to have more than one forms simultaneously open. When I save a record in the third form I get a "No changes to save" error message twice. I know that the error comes from the other two forms. I tried to set the error message level to a higher value but I still get the error message.
    So my question is :
    Can I get rid of the "no changes to save" error message while having more than one form opened at the same time.

    have a look at this solution http://talk2gerd.blogspot.com/2006/12/best-practices-on-error-and-on-message.html
    snippet:
    DECLARE
      V_Error_Code       NUMBER;
      V_Error_Text       VARCHAR2 (2000);
      V_DBMS_Error_Code  NUMBER;
      V_DBMS_Error_Text  VARCHAR2 (2000);
    BEGIN
      V_Error_Code      := Error_Code;
      V_Error_Text      := Error_Text;
    V_DBMS_Error_Code := DBMS_Error_Code;
      V_DBMS_Error_Text := DBMS_Error_Text;
      IF V_Error_Code IN (40401, 40405) THEN
        || 40401, 40405 - no changes to save / apply  get filtered
        NULL;
      ELSIF V_Error_Code IN (-1034, -3114) THEN
        || -1034, -3114 - not connected to database
        Message ('Not connect to database, exiting Form');
        Exit_Form (no_validate);
      ELSIF V_Error_Code IN (40508, 40735)
      AND   V_DBMS_Error_Code BETWEEN -20999 AND -20000 THEN
        || -20000 errors are raised by RAISE_APPLICATION_ERROR
        || They are handled in a different way
        Show_and_Log_DB_Error (V_DBMS_Error_Text);
      ELSE
        || All other errors went into Show_and_Log_Error, where they
        || get inspected, analyzed and logged.
        Show_and_Log_Error (V_Error_Code);
      END IF;
    END;

  • How to supress pop-up while using fm ALSM_EXCEL_TO_INTERNAL_TABLE ?

    Hi,
    I am using function module ALSM_EXCEL_TO_INTERNAL_TABLE to upload data form excel sheet, i am getting pop up like Do you want to save the changes you made to '<filename.xls>". how to supress this pop up

    check this thread
    Excel Upload.

Maybe you are looking for

  • Ar Invoice Totals don't add up

    Hello, I have an AR Invoice layout which when viewed, the totals in the bottom right hand corner don't total up. To the lines on the invoice. Whilst the correct entries appear to have been made on the system and the only observation we have made is t

  • Custom settings of Edit-in Preset not applied to image in PS

    I am having a problem with my custom made EDIT-IN Preset. While clicking on it launches the image (dng, psd or tiff) in PS, the custom settings of the preset (in my case: 8bit, sRGB) are not applied to the image. Instead the image is opened in PS wit

  • Qaaws input parameter mapping

    It is very time consuming to map a lot of input parameters to Qaaws data providers in Xcelsius.  This thread is to find out if anybody knows of any flexcelsius code that can help automate that or if SAP/BobJ is planning any enhancements to make this

  • Calling C program from forms

    Hello, My C program is on the Server.I want to call in my client forms.I have tried with host command remote execute. It is working . for this i have to add all machines ips to the server. Thats why i want ohther way. Is there any way. Is there any p

  • Cannot open Premiere Elements 11.0

    I have installed it three times and re-downloaded for the third time.  Everything was closed..... Any clue? Premiere Elements 11.0 has encountered an error. [/PerforceRoot/PRE11/premiere/elements/mac/main/MediaCore/ASL/Foundation/Make/Mac/../../Sr c/