FRM-40401, 40-405

Hi all

I have an application where I get this message in many forms. I have searched the forum and find that there are a lot of different answers, I tried some but are not really satisfied.

Write a trigger-ERROR and simply delete these messages means, I need to take care of all the other errors, myself, correct? Seems dangerous.

Increase the: SYSTEM. MESSAGE_LEVEL will work I guess, but where I would put it to 'normal '? In a trigger output?

Then there's the ' IF: SYSTEM.» FORM_STATUS = "CHANGED" that sounds like the best solution, but then I read in another thread that it does not really work. Forms builtin function commit will manage the FRM-40401 message anyway? Or is it all about which relaxation to put this code in?

Any useful comment is quite welcome!

Concerning

I think that the best solution would be to dig into your form and find out why you get the FRM-40401-no changes to be saved and FRM-40405 - no change to apply instead of delete. To remove the errors, the problem persists. There are two ways you can "dig" in your form to see what is happening. If you are able to run your form from the forms Builder, you can run the form with active debugging Messages. This will let you see the trigger that fires when you receive messages. You can also enable debugging Messages in the application by adding "debug_messages = YES" to the URL.

Another option would be to use Trace shapes on your forms session. This will create a log of your session of forms that you can check and see what is at the origin of the messages. There is some changes to set environment where forms must write the log files too. Download with your application server administrator to see if the variables FORMS90_TRACE_DIR or FORMS_TRACE_DIR are set. See Metalink Doc ID: 209372.1 for all the details to configure this option.

Finally, if you really want to delete just this messages, you can change your level of forms On-Error trigger to remove, but you're right, you must code the On-Error trigger so it handles still all other errors - that is not so difficult. Here is an example:

DECLARE
   al_id     ALERT;
   al_button  NUMBER;
BEGIN
   IF ( ERROR_CODE IN (40401, 40405) ) THEN
      /* Here are the Errors we want to supress */
      NULL;
   ELSE
       /* Now Lets handle all other errors that might happen */
      /* This example assumes you have an Alert defined in the
          ALERTS node of the Object Navigator.  */
      al_id := Find_Alert('ERROR');
      Set_Alert_Property(al_id,ALERT_MESSAGE_TEXT, ERROR_TEXT;
      al_button := Show_Alert(al_id);
      RAISE Form_Trigger_Failure;
END;

Hope this helps,
Craig B-)

If a response is appropriate or useful, please mark accordingly.

Published by: Silvere on June 9, 2010 09:00

Tags: Oracle Development

Similar Questions

  • Delete_Record FRM-40405, FRM-40401

    Hi all

    I use Oracle forms 6i.
    I have a delete button to remove the current detail record. The record deletion property is 'isolated '... I just write "Delete_Record;" in the trigger WHEN_BUTTON_PRESSED of the button 'delete '. Even after pressing the button, the line as expected for deletion is always displayed. How do I remove?
    Also how can I commit like I can't give commit_form here, since it raises frm-40405 no change found error and error frm-40401.

    I have a 'Description' point that is not an element of database and update property is not, and I also point 'Information' that has been validated for 'Not Null' when-validate-item trigger.

    commit_form shows no error if I upgraded the mesg to 25... and then after validation is reset to 0.

    I have my retail block in one different canvas other than my master block. I invoke the block of detail using SHOW_VIEW ('DTL_BLK')

    Kindly help.

    Thank you
    Sri

    Published by: hokoba on August 28, 2012 05:20

    The delete button must be in the same block as the folder that you want to remove, or forms navigates away from the line and the block you want to delete. .. .or set mouse navigate the button for no.

    And never set message_level above zero. You simply hide errors you should be handling.

  • How can I hide frm 40401 no changes to save

    Hi all
    I would not hide frm 40401 no changes to save
    I have create a (level of relaxation/block of form level) to hide a bed in the message
    ON-MESSAGE
    
    declare
    msgnum number := message_code;
    begin
    IF msgnum = 40401 THEN 
    Message('my own message.'); 
    end if;
    end;
    and the message still appears what can I do?
    I thank all

    Published by: Ahmed_Arafa on January 20, 2012 09:40

    Ahmed_Arafa wrote:
    Hi all
    I would not hide frm 40401 no changes to save

    Create a form named level trigger preform
    and write the following code

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    Hope this will help you

  • What trigger to use to insert data into the table db forms

    Hello

    My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
    I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
    Is - shutter release key of the form-level validation?

    Please notify.

    Thank you
    Didi.

    You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.

    Hi didi.
    And this is my last post I'll sleep. ;)
    Take form level trigger named preform
    and write on it

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • form do not maximize due to preform

    I made: system.message_level: = 5; before getting rid of FRM-40401-shaped.
    and a TIMES-NEW-FORM-INSTANCE I wrote Set_Window_Property ('WINDOW1', WINDOW_STATE, MAXIMIZE);
    Set_Window_Property (FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);

    but because of the shape of the PRE-FORM line not to maximize on the departure. What to do?

    Hello
    Put the trigger on PREFORM set_window_property.

    PS

  • Hide alerts

    How to hide the default alerts in forms 6i


    I don't like to get an alert that each time, commit user number.


    Pls guide me...

    Hello

    See if that would help you

    How can I hide frm 40401 no changes to save

    If this is not the case when this happens? Just explain what you are doing.

    Concerning
    SANAE

  • Trigger SAVE data non-base items

    Hi all
    I have a point of non-base of data in a block, in which I need to save the value of the element in another table.
    My form just to the default 'save' button at the top, where do I put the code to save the value when the user presses the button "Save".
    Since then when I change the value of the non-base data element and press 'save', FRM-40401: no change to save is fast.

    Please suggest. Thank you.

    You can set the property "Lock Record" of the non-base of data element, to say the forms that the line has been updated, even if no element corresponding to a database column has been updated.
    Then you can wright code to store the value in the subsequent update trigger.

  • FRM-40301 query caused no records to recover - is lost

    Hello
    I have a form with 2 tabs. the first tab is based on a block of DB and the second tab is enabled only if no records are returned by the first tab. The form works fine. But if the user enters some criteria of the query, which does not have any matching record in the comic strip, in the first tab, the form returns no error message (FRM-40301 query caused no records to retrieve). I need a way to indicate to the user that no records have been retrieved.

    the trigger for the error to the form level is-
    DECLARE
         error_value   NUMBER (5) := ERROR_CODE;
         lv_errtyp       VARCHAR2 (3) := ERROR_TYPE;
         lv_errtxt       VARCHAR2 (800) := SUBSTR (ERROR_TEXT, 0, 100);
         dbmserrcode   NUMBER := DBMS_ERROR_CODE;
         dbmserrtext   VARCHAR2 (200) := SUBSTR (DBMS_ERROR_TEXT, 0, 100);
         alt_num            NUMBER;
         alert_is        alert;
         v_err             error_tools.error_rec_type;
    BEGIN
    
         IF error_value = 40735 THEN
              alert_is := FIND_ALERT ('ME_ERROR');
              SET_ALERT_PROPERTY (alert_is, alert_message_text, ERROR_TEXT);
              alt_num := SHOW_ALERT ('ME_ERROR');
    
              IF alt_num = alert_button1 THEN
                   RAISE form_trigger_failure;
              END IF;
         ELSIF error_value IN (41039, 42100, 40401, 40405, 40102, 41009) THEN
              NULL;
         ELSIF error_value IN (40202) THEN
              alert_is := FIND_ALERT ('ME_ERROR');
              SET_ALERT_PROPERTY (alert_is,
                                              alert_message_text,
                                              :SYSTEM.current_item || ' must be entered. ');
              alt_num := SHOW_ALERT ('ME_ERROR');
         ELSIF error_value IN (40508, 40509) THEN
              alert_is := FIND_ALERT ('ME_ERROR');
    
              IF dbmserrcode <= '-20000' OR dbmserrcode >= '-20999' THEN
                   SET_ALERT_PROPERTY (alert_is,
                                                   alert_message_text,
                                                   error_tools.get_oracle_error_desc (dbmserrtext));
              ELSE
                   SET_ALERT_PROPERTY (
                        alert_is,
                        alert_message_text,
                        lv_errtyp || '-' || TO_CHAR (error_value) || ': ' || lv_errtxt
                   );
              END IF;
    
              alt_num := SHOW_ALERT ('ME_ERROR');
         ELSE
              alert_is := FIND_ALERT ('ME_ERROR');
              SET_ALERT_PROPERTY (
                   alert_is,
                   alert_message_text,
                   lv_errtyp || '-' || TO_CHAR (error_value) || ': ' || lv_errtxt
              );
              alt_num := SHOW_ALERT ('ME_ERROR');
         END IF;
    
         error_tools.clear_errors;
    END;
    I checked if I catch any exception no_data_found in the form. In the query before relaxation so that DB, I have the following code: -.
    BEGIN
    some_code..................................
    
         BEGIN
              IF :exceptional_events.screening_group_num IS NULL THEN
                   SELECT scr.screening_group_num
                     INTO scr_group_num
                     FROM screening_groups scr
                    WHERE UPPER (scr.screening_group_name) =
                                   UPPER (:exceptional_events.screening_group_name);
    
                   :exceptional_events.screening_group_num := scr_group_num;
              END IF;
         EXCEPTION
              WHEN NO_DATA_FOUND THEN
                   NULL;
         END;
    
    some_code.........................
    END;

    Hello!

    May your: system.message_level is set to something greater than "0"?

    Please try to catch the FRM-40301 in a trigger - MESSAGE like:

    begin
    if
     message_code = 40301
    then
      message ( 'Your Query returns no records. Please enter again or press STRG-Q to leave enter-query mode.' );
      message ( ' ' );
      clear_message;
    else
      message ( message_type || '-' || message_code || ': ' || message_text );
    end if;
    end;
    

    Concerning

  • Finally, mite update frm FF 3.6 at 14 for html5 (on the work of google last updated frm 3 to 5 services dint). will be history, bookmarks, site prefs etc be preserved?

    Finally, mite update frm FF 3.6 at 14 for html5 (on the work of google last updated frm 3 to 5 services dint). will be history, bookmarks, site prefs etc be preserved? probably used to active connections. extension & plugin compatibility is not really important.

    also, so simply, I hit update and do, will that opera-like "Firefox" menu appear or I have to do a clean install to get it?

    If you do the update of in Firefox bookmarks, preferences, history, etc. will be there. Active connections should work for most as well. The majority of your extensions and the plugin should work as well, but you may need to update after the update of Firefox.

    On Windows XP the menu Firefox is not by default, but if you want you can always enable it by going to view > toolbars and unchecking the menu bar

  • 405 proDesk: what RAM to use for the upgrade

    I need more RAM. There are 2 PCs.  It has 2 GB; the other has 4 GB.  It is not enough.  I don't know what Ram should be added.

    @StanF36, welcome to the forum.

    This is memory that is recommended by Crucial memory:

    http://www.crucial.com/USA/en/compatible-upgrade-for/HP-Compaq/HP-prodesk-405-G1-Tower

    http://www.crucial.com/USA/en/compatible-upgrade-for/HP-Compaq/HP-prodesk-405-G2-Mt

    As I was not sure which is your version of the 405 ProDesk, I gave you a link for both versions.  Make sure you choose the right pair.

    Crucial makes memory of very good quality, reliable.  Since the memory is so cheap, I suggest to buy all new memory, so there is no conflict with the memory of the old and the new.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • Satellite A100-405: [Pickup and return] what information is required?

    I bought a Satellite A100-405 today and I have a problem with my screen (it produces sounds iritating). I phoned the Dutch Toshiba helpline and they said they will pick up tomorrow. I needed to write the number of application Service and address according to the guy on the phone.

    Is there anything else that I should put on it to help the DHL soon to Toshiba (Netherlands)?

    Concerning

    No, I'm Don t think we should give additional information from DHL. Just send your machine to Toshiba and they will handle the rest. Well, worry not Don t, buddy.

    Everything will be fine, because I did it 2 times and everything was OK.

    Greetings

  • Satellite A100-405 - HARD 7200 RPM disk upgrade

    I want to know if I can improve the my Satellite a100-405 with a fujitsu hdd 7200 sata-II

    The original is FUJITSU MHV2160BT sata 150 MB/s depending on the Everest software.

    SATA controller is compatible and that's why it is not a big problem to use the SATA II HDD SATA I (150 MB/s) HARD drive.

    But of course the SATA II HDD will not reach full implementation and speed will be slowed to the limitation of SATA controller.

  • Failure of the graphics card on the Satellite A100-405

    Hello

    I have a Toshiba A100-405, which has a Geforce go 7600 graphics (specifications).
    Yesterday, playing a game, all of a sudden the frozen screen and showed a lot of horizontal stripes.
    I tried to restart the computer, but succeeded only in safe mode. The bands have not disappeared. (funny colors, such as low resolution, stripes, blocks, etc.)

    Question 1: Is my assumption that the graphics card is in correct failure?

    Question 2: Can this card easily replace? And if so, which would cost only? (in EUROS)

    Looking forward to your answers.

    Roel

    Hello

    These funny funny colors, as low resolution, stripes, blocks are called artifacts (adverse alteration in the data, introduced by a technical and/or technological). It seems that the dysfunction of the graphics card. To be sure, connect the external monitor to check. Talk about the replacement, if it is integrated in the motherboard, the entire motherboard must be replaced. It costs about 35% of the total price computer laptop, as you can see that it is quite expensive.

    Also, from my own experience I know, sometimes these artifacts occur because of the graphics card overheating due to dust. Do not be lazy to clean the laptop with the jet of compressed air. Otherwise, contact the ASP (SAV) and prepare the money.

    Welcome them

    Post edited by: Jeka-HE

  • 405 proDesk G2: how to activate Windows after replacement of the motherboard

    I upgraded my G2 405 ProDesk to Windows Pro 10 of the original OEM Windows 7Pro earlier in the year.

    Last week, is not the motherboard.  The PC is still under warranty, so HP arranged for a replacement on place of the motherboard.  It worked well, except that windows is activated is no longer.  I called Microsoft with the installation ID in order to get a re-activity windows confirmation ID.  Microsoft said that I need the original license key.  I don't have that because it's an installation OEM from HP with, arguably, the key in the BIOS that has been replaced.

    So what I do now?  HP will issue me with a license key given that the PC is still under warranty?

    Just to clarify, the license was Windows 8.1 Pro downgraded to Windows 7 Pro, so there was a key Windows 8.1 on the original BIOS but the PC came with Windows 7.

    Your post got me thinking, however. I ran the FirmwareTablesView.exe application on the new motherboard and found a license key in the BIOS.  Then, I went to change the product in Settings\Update & security key and enter the key of the new BIOS.  Activation was then successful.

  • Tour HP 405 Micro: beeps warning 405 6 hp

    Hello. Currently, I own a desktop computer HP 405 with processor AMD A8-6410 and have recently tried to upgrade with an AMD Radeon R7240 by MSI. I also bought a Corsair CX430 PSU and you have installed correctly on my computer. However, whenever I try to install my GPU, it does not start and I hear six warning beeps. I can't find useful answers on the current forums. That make these warning beeps average and how do I solve?

    Hello:

    If your PC came initially with W8 or newer, you must modify two BIOS settings when you install a video card no HP.

    Please see this link for more information on the parameters to change.

    http://support.HP.com/us-en/document/c03653200

Maybe you are looking for

  • 10 suggested iOS apps

    How to disable suggested applications that appear at the bottom of the screen when you switch 10 iOS apps? In previous versions, the framework was in settings-> iTunes and App Store, but it's gone. I looked in all the other settings and am stumped. A

  • Proceed with the trial after you open a vi dialog box

    I am a beginner with TestStand. I'm going through the entire sequence until all end with some dialog windows left open without waiting for a user to click on OK/QUIT on the dialogue window to go to the next step of the test. I want the test at the en

  • Authorize iTunes

    I'm starting to get really annoyed with my laptop Acer Aspire One! Whenever I go on iTunes, I try to play my music, but a legend appears saying: computer need permits before you download music. "How do you allow a computer? It annoys me because it do

  • How can I change the letter (h) to (g) on my external hard disk drive.

    I have an external hard drive that has recently changed, but I D letter (g) to (h) that contains all my files.  . When I opened the position of H/D get a dialog box:- "location is not available." Done G:\zipfix.vista\Desktop refers to a location that

  • How to change the issue secret

    Hi I was wondering how I can change my security question, I know the answer to it, but during the installation I choose a really easy and now want to change?