FRM - 40102:RECORD MUST BE ENTERED OR DELETED FIRST.

Magalie
I did a form in which I had taken three blocks with the help of assistants datablock and on a block that I had taken a push button on which I had written when the shutter release button that retrieves records from the database of the form elements

declare
cursor c1 IS select payperiod refno, amt, refdate, paycalperiod
of prmamed
where empno =: MED. EMPNO
AND earningdeduction =: MED. EARNINGDEDUCTION
and paycalperiod is not null;

BEGIN
GO_BLOCK ('PRMAMED1');

OPEN C1;
LOOP

FETCH C1 INTO: PRMAMED1. PAYPERIOD,: PRMAMED1. REFNO,: PRMAMED1. AMT: PRMAMED1. REFDATE,: PRMAMED1. PAYCALPERIOD;
NEXT_RECORD;
WHEN EXIT C1% NOTFOUND;
END LOOP;
PREMIER_ENREGISTREMENT;

Close c1;
go_item ('PUSH_BUTTON16');
END;

This trigger works correctly its me gives the proper output, but it gives also an error IE
FRM - 40102:RECORD MUST BE ENTERED OR DELETED FIRST
could someone help me how to remove this error
Thanks in advance guy

Published by: Christine Konditamde July 8, 2009 22:59

Hi, Christine Konditamde,.

Exchange the two lines in your code like:

EXIT WHEN C1%NOTFOUND;
NEXT_RECORD;

You should do next_record if there is some recovered record. Here you have first gone to the next record and if suppose he isn't get any folder, it will give you FRM-40102, because you're trying to create the folder to the last record.

It will be useful.

Check the answer as useful / OK, if this can help you

Carole

Tags: Oracle Development

Similar Questions

  • How can I trap FRM-40102: Record must be entered or deleted the first error

    Whenever I click the box tool button insert record (green more) I get FRM-40102: Record must be entered or deleted the first error. How to catch the trap this error?

    IF errnum = 40102 THEN
    Clear_All;
    create_record;
    END IF;

    I want to put the above code. What trigger, I need to add this code. I have the multi block shape.

    Hi Chris,
    You can use the ON-ERROR trigger at the level of the form like that...

    IF ERROR_CODE=40102 THEN
     -- Do something here...
    ELSE
      MESSAGE(ERROR_TEXT);
      MESSAGE(ERROR_TEXT);
      RAISE FORM_TRIGGER_FAILURE;
    END IF;
    

    -Clément

  • List: error record must be entered and deleted everything first

    Hi all
    I created a form in this form, I used the data block.
    in this data block, I chose option multiple records.
    It shows several text fields, its ok
    and I created a new block of data to a button
    This button, I wrote a code pl/sql trigger when click
    Here is code
    declare
         cursor test is 
              select location_id,street_address from locations where country_id ='US'; 
      begin
          for i in test loop
                :LOCATIONS.LOCATION_ID:=i.location_id;
             :LOCATIONS.STREET_ADDRESS:=i.street_address;
               next_record;
          end loop;
              end;
    This code works very well with the trigger a time new form instance

    but when-click of the mouse, it gives an erros
    Record must be seized and remove the first
    how to solve?

    Set your where condition for the datablock in the db--> Property Palette block-> Where Clause

    or set programmatically using Set_Block_Property (, DEFAULT_WHERE,) in your motion trigger.

  • FRM - 40202:field must be entered

    I created a form with three blocks to help Assistant datablock and my cursor find themselves trapped in the first element of the first column, if I do not fill any which entry in that and I get an error i.e FRM - 40202:field must be entered hw can I fix this problem
    as i new articles in which I am taken to the trap are not database null columns...
    Please help me guy...

    To avoid this error, you must set required in the palette of the property of the element to FALSE.
    Hope it helps you,
    Fabrizio

    If this answer is useful or appropriate, please mark. Thank you.

  • FRM - 40202:Field must be entered on two blocks with the same table

    I have two blocks, blockA and blockB, both from the same table that is tableX.

    When I ask of blockA and it worked, then I go to blockB and modify data, and save, there is no problem. But when I do not run the query of blockA or if the query did not return any results, I go to blockB and change some data then save, I got this error. The cursor then go to first blockA point. So now, I have to delete this empty line before the Save.


    Any suggestion?

    you set a few initial values programmatically for a block?
    in this case, the status changes to INSERT and you will get this message.
    You can check the staus with GET_RECORD_PROPERTY (1, "A BLOCK", STATUS), e.g. with the trigger KEY-COMMIT.

  • error frm-40102

    Hai

    When I genetating my cursor, I got an error

    FRM-40102 record must be entered or deleted first

    This is my encoding

    declare
    Cursor c1 is
    Select the barcode, attend_date, intimate, outtime, intrtimein, introuttime
    Of dail_att
    ORDER BY BAR CODE;
    Start
    To r1 c1 loop
    If: bartime between 0100 and 0630
    Update dail_att
    Set = outtime: bartime
    where = barcode: barcode
    and attend_date-1 =: bardate
    and intimate is not null;

    elsif: bartime between 0645 and 0930 and: bartime between 1100 and 1230 and: bartime between 1630 and 1745 and then

    insert into dail_att(barcode,attend_date,intime)
    values(:Barcode,:bardate,:Bartime);
    end if;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE" OR: BAR CODE IS NULL;
    next_record;
    End loop;
    commit;
    exception
    while others then
    forms_ddl ('rollback');
    message(SQLERRM|| dbms_error_Text);
    message(SQLERRM|| dbms_error_Text);
    forms_ddl ('commit');
    End;

    Thanks and greetings

    Srikkanth.M

    u don't have to write INSERT INTO CLAUSE forms for data blocks already part of the form... when I started programming I did hv seen many of my colleagues doing the same thing coz, they have no notion of data blocks of forms.

    FORMS INSERTS AUTOMATICALLY UPDATE FOR DATA BLOCKS SO JUST PUT THE VALUES INTO THE FIELDS WITH THE HELP OF UR LOGIC NOT WITH INSERT UPDATE

     go_block('block1');
     loop
       :myfield := 'ABC';
     exit when :system.last_record= 'TRUE';
     next_record;
    end loop;
    

    Bangoura
    [My Oracle Blog | http://baigsorcl.blogspot.com/]

  • FRM-40202: the field must be entered

    Hello

    We have customized the CUSTOM.pll for the form of lots of bills. If the user is delivered to this form with entry > lots of invoice, we are BAT_SUM_FOLDER. ATTRIBUTE12 to a value of CUSTOM.pll. But if the user click on Find button or presses CTRL F11, then it gives the error message that "FRM-40202: field must be entered" for the name field of the sheet instead of going to the query. How to avoid this error message and go to the request... but I want still has a value in the attribute12 CUSTOM.pll.

    Thank you
    HC

    You set BAT_SUM_FOLDER. ATTRIBUTE12 at a time-new-form-instance?
    If you are, then as soon as you open the form, since a field of database has been changed, Oracle suggests you create a new record and it won't let you navigate out unless
    (a) you enter the required fields OR
    (b) you disable registration
    Only after that you can make a request.

    To avoid this problem, can then define you field in when-validate-record?

    Sandeep Gandhi

  • FRM - 40603:Records is no longer reserved for the update. Query for changes

    Hi I have a form that has been developing 6i and upgraded to 11g form work well in 6i, but when I try to do the same function in 11g get this error

    FRM - 40603:Records is no longer reserved for the update. Query for changes
    When I commit this execute_query (for_update); It is the form to clear values when it loads, the error comes when I try to delete

    How can I do this

    Action: If you want to change the block, you will need to re - interview.

    Captureerror3.PNG

    I use When-Timer-Expired (WTE) trigger

    You have a 'relationship' defined between the blocks of your master and detail? If so, simply update your master block and the block of details will automatically be re-interviewed. If you cannot use a relationship, then you can use can create a timer in the trigger that updates the database, then in the trigger When-Timer-Expired (WTE) you can go to the retail block and run a query. For example: / * the sample on change trigger * /.

    DECLARE
      timer_id  TIMER;
    BEGIN
    ....your code here that performs the update....
      /* Now create an instance of a timer */
      timer_id := Create_Timer ('upd_detail',1,NO_REPEAT);
    END;/* Sample Form Level When-Timer-Expired trigger */
    DECLARE
      timer_id  TIMER;
    BEGIN
      -- Find the timer first
      timer_id := FIND_TIMER('upd_detail');
      IF NOT ID_NULL(timer_id) THEN
          GO_BLOCK('DETAIL_BLOCK');
          Execute_Query;
      END IF;
    END;
    
  • Developer Mode error: outdated., the xxAM.xxVO1 view object contained no trace. The records displayed may have been deleted, or the current record of the view object is not properly initialized.

    Hi all

    I'm creating a Maunal search page.

    To do this, I created a view based on a custom display object.

    Page contains 2 parameters.

    If I give all settings and click the OK button.

    It gives the following error.

    Developer Mode error: outdated data


    This page contains outdated information. This error could have been caused by the use of the buttons of the browser (the browser back button, for example). If the browser navigation buttons were not used, this error may result from coding errors in the application code. Please check press the back button on the browser developer guide - view primary key object comparison section to review the main cause of this error and correct the mistakes of coding.


    Cause:
    The view BLTrinDisplayAM.ViewVO1 object did not contain any record. The records displayed may have been deleted, or the current record of the view object is not properly initialized.

    To visit, please click on the Home link at the top of the application page to return to the main menu. Next, go to this page using the app's navigation controls (menu, links and so on) rather than use the controls of the browser as rear or front.

    If I don't give any parameter and click go Button.The content of the view are displayed.

    So if I pass all parameters and click Go, then the corresponding record is displayed.

    Why, for the first time, if I give the parameter and click Go, obsolete data error is coming?

    Please help me.

    Grateful for your help!

    -Aren

    You use the object of the view for the search criteria and search results fields.

    I suggest you to remove references of VO fields of search criteria, item1 and item2.

    And in the event of the button 'Go' in the processFormRequest, get the criteria for field values entered by the user as below and run the object (ViewVO1) of the view by using these values.

    String buCode = pageContext.getParameter ("item1");

    String lsiCode = pageContext.getParameter ("item2");

    Thank you

  • How to identify the virtual copies (in my records) that have already been deleted a collection

    Hello!

    I keep looking for an answer to this anywhere on the web and 3 books, but can't find the answer...

    How to identify the virtual copies (in my records) that have already been deleted a collection?

    Here's the workflow, and where I'm stuck.

    1. I chose a picture and put it in a collection.

    2. I did a whole bunch of virtual photos in the collection copies that I tried different modifications.

    3. after and during a lot of changes, I have a lot of virtual copies removed from my collection because I decided against the changes after doing some comparisons.

    4. when I went the folders to select my next picture to work away and so to add to the collection, I discovered that each of my virtual copies was in the original folder, even if I had deleted from my collection.

    5. I really don't want these virtual copies deleted to be in my home folder.  They were virtual copies of trial and error and I wanted them to really just be thrown out.

    6. how to identify these virtual copies removed-from-the-collection in my folder?  File names all look the same, and besides, I want to be absolutely certain that I have selected the right ones.  Some of the changes were very minor and would be difficult to see without laboriously go through them one by one.

    Thank you very much!!

    Anne

    No easy answer on fixing the mess other than an individual inspection of the virtual copy can't watching the Images/Edit history to determine which ones that you no longer need.

    But to help prevent the problem in the future: when you are working from a collection, you must use ALT + return back to remove a copy of Photo or virtual catalog. With just the key DELETE or BACKSPACE only deletes the photo from the collection.

  • Enter my [deleted] for Photoshop CS3 serial number is not accepted on my new computer

    Enter my [deleted] for Photoshop CS3 serial number is not accepted on my new computer

    If the serial number is a sequence, you must install the software later.

  • Why windows live mail open then freeze!, must do alt ctrl delete to close

    Why windows live mail open and then freeze!, must do alt ctrl delete to close, done uninstall and reinstall anything will do, downloaded pc cleaner mircosoft

    suggestion, same answer.

    What could happen there? also tried opening without antivirus protection to see if it was to degree of protection it has not helped.

    Hello

    The question you have posted is better suited in the Windows Live community forums. Please visit the link below for any further assistance.
    http://windowslivehelp.com/product.aspx?ProductID=15

  • FRM - 40654 Record has been updated by another user. Refresh the file

    Hello

    Scenario of

    ------------
    Header block - H1
    Multi disc child block - C1
    ----------------
    Update of a field - rate of change in the header block - should change two fields - "price and quantity" in the block of records child multi - C1.
    There is no trigger database on all the tables.
    We have treated the logic above in the update of H1 post-declencheur.

    Updated explicit statemetns still appear in the subsequent update trigger, whose purpose is to update the table of the child of the block - price and quantity columns.

    -------------------
    Question
    Is it correct to use an update statement in the post update trigger oto updated the table of the child block. Otherwise, the wheat is the right way?
    We are also updating a column of synthesis called 'sum_amount' which belongs to H1.
    -----------------------
    We get the error:
    -------------
    FRM - 40654 Record has been updated by another user. Refresh the folder to display the change.
    -----------------

    Updates on this would be useful. We stayed by the suggestions in this forum... and were not able to solve this problem...
    Concerning
    SR

    If it is not updated in later day, what's the alternative outside using post - update trigger so that the prices of columns and the amount are updated as soon as the exchange rate is updated.

    Have you commented the trigger for update again?

    In general, I tend to use the over - or before fires (suite-update / Pre - Update). However, I think that you'll get the same error using these triggers. More importantly, I need to know the answer to my previous question:

    We are also updating a summary column called "sum_amount" that belongs to H1.
    

    How are you on this column of table of contents? The SUM_AMOUNT column is a calculated field or you have written the code that updates this article? The column SUM_AMOUNT is a field of database? >
    My first reaction is that this process is the most likely cause of your error FRM-40654, but that's just a guess.

    Craig...

  • 40202 field must be entered

    I have an Oracle Forms application, Version 10.1.2.0.2 which worked well.
    I then added a list item to the Web that contains the current year and the following year.
    When I run the APP, entered a value in one of the elements and clicked a button, I get the error message '40202 field must be entered' when I get this trigger WBP button code:
    Go_Item ('renew_dealer.dnum');

    There is a Clear_Form a few lines above the Go_Item, that erases all the values that had been entered on the form.
    When I've debugged, I saw that when the Go_Item has been reached, the program went straight to the trigger of error in the form, where the error message has been called. Thus, the problem is not with wvi to trigger something.

    I don't know why this is happening just because I added a list item. Even when I do not take a value of the list item, I get the error message. Any suggestion would be appreciated.

    Published by: Prohan on November 15, 2010 15:37

    View the status of blocking before clear form, which might give you the idea.

    Add statement below to check the status.

    MESSAGE(:SYSTEM.BLOCK_STATUS);
    

    In addition, this mode of validation do you use CLEAR_FORM? If your form/block CHANGED or INSERT mode, then it will TAKE all of the required fields be filled out before committing to the database. See if your newly added list REQUIRED property field is set to YES. If so, change it to no., and try again.

  • FRM-40102

    I have two blocks, the two are not block.one of the database is master block (PAY_ROLL) and another TLD block (PR_DETAIL) .and I have a BUTTON GENERATE PAY_ROLL in which I pass the (v_month_year) and then call procedure CALC_EMP_PAYROLL I following in the procedure of coding but I get error Frm-40102.

    CURSOR all_emp IS
    E.emp_id SELECT DISTINCT FROM emp WHERE NVL(e.stat,'A') = 'A' AND PAY_STATUS = 'n';
    Start
    SELECT COUNT (*)
    IN v_count
    OF pay_roll
    WHERE To_Char(month_year,'MON-RRRR') = To_Char(P_MONTH_YEAR,'MON-RRRR');

    IF v_count < 1 THEN
    SELECT USER
    IN v_user FROM DUAL;

    INSERT INTO pay_roll
    VALUES(v_pr_id,P_MONTH_YEAR,v_user,v_user,,'N',,,null);

    FOR e IN all_emp LOOP

    DECLARE
    CURSOR all_emp_pays IS

    SELECT PT_ID, AMOUNT
    OF EMP_PAYSTYPE
    WHERE EMP_ID = e.EMP_ID AND VERIFICATION_STATUS = 'Y ';

    BEGIN
    FOR P IN all_emp_pays LOOP

    INSERT INTO PR_DETAIL2(PRD_ID,PR_ID,EAT_ID,EDED_ID,EALW_ID,PT_ID,AMOUNT,EMP_ID,PD_TYPE)
    VALUES (SEQ_PR_DETAIL. NEXTVAL, v_pr_id, NULL, NULL, NULL, P.PT_ID, P.amount, E.EMP_ID, 'P');
    NEXT_RECORD;
    END LOOP;

    Please help me...
    Kind regards

    Do not use NEXT_RECORD; in the loop.
    Use next_record in a loop only when you assign values to the fields in the form.

Maybe you are looking for

  • Help! I condemned my phone to the death of sweat! If I'm screwed?

    Hi guys! Here's my deal I have an iPhone 6 s and she is beautiful and I love it but I have a problem! I am a store at Costco and it's very intense and sweaty work. They play music on the speaker on the head, but in my Department and I do not mean squ

  • Satellite X 200: Failed to remove the MS PRO Duo slot cards

    Hello! I have a 200 X and with it I got multiple digital media card slot. Enyone he used? I tried to insert the MS PRO Duo and it worked, but get out the map was a nightmare. I need to push way back in the computer before it is seated properly and dr

  • Satellite L650D - 15K - graphics card problem

    Hello I updated accidentally driver graphic card ATI Radeon 5650 on the laptop, and then during the games and video look, the computer became very slow, the CPU usage is average on 60%. I uninstalled the latest driver, reinstalled the driver of my mo

  • Satellite A100-153 infrared configure or disable

    Hello everyone this is my first post here.I want to know how I can configure the ir port so that I can use it with other programs as the media player.Also I have a problem with listening, the remote control of my amp seems to share some codes with th

  • Pavilion x 360-13-a110dx: HP technical support will not fix a broken warranty screen

    Computer tech support rant: So I treat my electronics with care. For some strange reason, recently developed a crack on the touch screen of my combo of tablet or a laptop HP Pavilion 360. The thing is usable, and the slot is under the top layer there