error frm-40102
HaiWhen 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/]
Tags: Oracle Development
Similar Questions
-
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 regardsDo not use NEXT_RECORD; in the loop.
Use next_record in a loop only when you assign values to the fields in the form. -
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
-
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:59Hi, 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
-
APXINWKB: ERROR FRM-40105 AFTER SEVERAL UPDATES TO FDF INVOICE
Hello
I enabled AP invoice header FDF and I am facing after publication.
Scenario of
1. display an AP invoice in the invoice workbench
2 - Click on the header flexfield and update. Save the changes.
3. without re-mark Bill, update any header flexfield (i.e. a second flexfield update), and then click Ok to save the changes. Results:
b in the summary Bill block, the cursor moves to the next line, creating a new invoice
(b) error message is displayed in the toolbar State APXINWKB:
FRM-40105: unable to solve the reference in article
4 - Click back on the original Bill, to display the message with this error:
APP-SQLAP-10186: Please validate or clear your changes before continuing.
Click Ok, then get this message box:
Do you want to save the changes you made?I followed after discussion on metalink
Bug 13512892 : APXINWKB: ERROR FRM-40105 AFTER SEVERAL updates TO BILL FDFBug 7609800 : Could not CLOSE THE POP-UP ERROR of FDF ON BILL AP.
Got the hotfix mentioned in Bug 7609800 applied on my instance but still question exist.
Please help if anyone knows the solution to this problem.
Thank you
Hi Cheryl,
My problem has been resolved, just wanted to share it here.
I created a folder with no query and set it to the default value.
Then I moved the FDF which was originally at the end of the header to a few fields left line. It is not at the end.
This way my problem has been resolved.
Hope this will help if someone else must face the same question.
Concerning
Siraba
-
Error FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001
When I want to create a new project the form send this error message:
FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001
I already compile forms, they ran autoconfig and has no
Forms is: PAXPREPR
the module is: projects
EBS version: 11.5.10.2
DB: 11.2.0.3.0
Please see:
PAXPREPR - creating a project gets error FRM-40735: error Trigger & ORA - 01001 (Doc ID 417218.1)
PAXPREPR - FRM-40735 when you try to copy the project template after you have entered a fast entry (Doc ID 417537.1)
Thank you
Hussein
-
Hi friend
I put the Date IN required field in the form of command client when I try to create a command, I get a
Error - FRM-41019 cannot set REQUIRED attribute of the element not enabled in ORDER. REQUEST_DATE. Please let me know why this origin of the error and how can I fix this error. Need to avoid this error pop up
Your suggestion is very good
Thank you
ThilibanSalvation;
Please check below which could be useful for your question:
Form of the results of quality of QLTRSMDF QLTRSINF enter back FRM-41019: cannot set attribute REQUIRED of non-active element [1288624.1 ID]Respect of
HELIOS -
ERROR FRM-41214 weblogic 10.3 + form + reports 11g
When I try to generate a report, I get this error: FRM-41214
and I log file check locate on /oracle/Midleware/asinst_1/diagnostics/logs/ReportsServerComponent/my_ReportsServer/rwEng-0_diagnostic.log
and I found the last lines:
[2011 11-29 T 16: 36:20.429 - 06:00] [reports] [NOTIFICATION] [] [oracle.reports.engine] [pid: 29558] [tid: 11] [ecid: 0000JFlNlK3Fw000jzwkno0007Dq000002, 0] [EngineName: rwEng-0] EngineImpl:run oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
[2011 11-29 T 16: 37:07.306 - 06:00] [reports] [ERROR] [] [oracle.reports.engine] [pid: 29558] [tid: 11] [ecid: 0000JFlNlK3Fw000jzwkno0007Dq000002, 0] [EngineName: rwEng-0] rwfdt:rwfdtprint Job ID = 143 ERR error sending out tasks to be cached
[2011 11-29 T 16: 37:07.306 - 06:00] [reports] [ERROR] [] [oracle.reports.engine] [pid: 29558] [tid: 11] [ecid: 0000JFlNlK3Fw000jzwkno0007Dq000002, 0] [EngineName: rwEng-0] engine C Job ID = 143 ERR REP-1804: BANCO printer definition file cannot be opened.
[2011 11-29 T 16: 37:07.308 - 06:00] [reports] [INCIDENT_ERROR] [REP-1804] [oracle.reports.engine] [pid: 29558] [tid: 11] [ecid: 0000JFlNlK3Fw000jzwkno0007Dq000002, 0] [EngineName: rwEng-0] REP-1804: BANCO printer definition file cannot be opened. [[
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
at oracle.reports.engine.EngineImpl.run(EngineImpl.java:553)
at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:104)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1682)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1213)
to com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$ WorkerThread.performWork (ThreadPoolImpl.java:471)
to com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$ WorkerThread.run (ThreadPoolImpl.java:500)
Help, please!Hello
This error means that the file Banco.prt is not found.
The definition of the printer (file .prt) file not found in the REPORTS_PATH directories.
By default, these files are located in $ORACLE_HOME/reports/printers and this directory is located at REPORTS_PATH
-> Check the value of REPORTS_PATH
-> Check if BANCO.prt exists in a directory of REPORTS_PATHConcerning
-
Error FRM-30312 when compiling to a custom library pll on forms 11 g weblogic
Hi just posted a thread here:
Help, please.Run_product is used inside the RP2RRO_RUN_PRODUCT procedure. You can open the pll in Forms Builder and see for yourself.
Maybe the form 11g has a new rp2rro.pll. In this case use this pll instead of upgrading the 10 g version. -
Error FRM-92101: only 2 sessions enabled
Application server forms and reports 10.1.2.3
Windows Server 2003 R2 SP2
Hello
When my forms of the running application server allows only 2 users connected at any time before the error frm-92101 is lifted for all new connections. Surely, it is not a normal behavior?
After studying the problem, it seems that the user account that must have "Allow service to interact with desktop" clicked so that the system to allow more connections. Exactly the same problem was found here frm-92101 Forms Server failure (only after that 60 sessions are started)
However, I have a selected custom account to run the service to allow oracle to access network resources. Is there a way to allow my user to interact with the Office account?
Is there another solution to the problem?
Thank you
FM-92101: There was a failure in the Forms Server during startup. This coulp happen due to invalid configuration. Java Exception: oracle.forms.ConnectionException: forms session <30> failed during startup: no response from runtime process ...................
Check oracle document 187455.1
Hope that fixes it.
It should be reviewed too:
604633.1
Published by: mseberg on February 3, 2011 11:55
-
Get error FRM-92101 after adding a node of the Web to an existing Instance.
Hello
I added a node of the web to R12 existing EBS who already have a node of the Web. After I added the node, I get the error FRM-92101 while opening one of the nodes in the web forms. Before adding the new web level there is no problem with the forms. I ran the new autoconfig from all nodes again but the problem is still there. I am able to open the login page of two nodes, but only the question is coming with the forms. Am I missing somethig? Any suggestion please.
Thank you
Shashi.Hello
Now that I've added the node of the Web 2 Finally using auto clone and adadnode.pl scripts. Therefore all URLs accessing EBS of browser web are to redirect to the Web node 2, no matter if I have access to the application of Web node 1 or Web 2.
Did you run the AutoConfig successfully on both nodes?
Seems something must be corrected in the context file or the database for other FND tables. I don't know why it's happening. Please help me.
I still wonder why you have not enabled the file application.log until now. So, please report it the full error log here.
Thank you
Hussein -
error frm-41211 integration: SSL failure running another product?
Hello
I have problem with open froms report.
I created the report in the reports and save it to c:\reports\report1.rdf
I have button creater in froms and when_button_pressed trigger:
DECLARE
Rap1 report_object;
v_rap1 varchar2 (100);
BEGIN
Rap1: = find_report_object ('report1');
v_rap1: = run_report_object (rap1);
END;
can I put the report forms object and provide the path to my report "c:\reports\report1.rdf". If I run the form and click the button get
error frm-41211 integration: SSL failure running another product
any idea?
concerning
Edited by: user515960 2010-07-04 02:53Hello
the problem in your code, please check to see if your code.
What is your version of forms?Your report server is up or not?
and also check out the following link.
http://www.Oracle.com/technology/products/forms/PDF/10G/frmrepparamform.PDF
Sarah
Published by: SaRaH on July 4, 2010 03:16
-
Hello
When recording data there is a mistake in the production system:
------------------------------------------------------------------------------------------------------------------------------------------------------------
Error
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FRM - 40735:WHEN - BUTTON-PRESS
trigger an unhandled exception thrown
ORA-01403
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Concerning
SBJ *.Hi again;
Also, please check below and see its helpful:
FRM-40800 trying to connect on forms [374636.1 ID]
Respect of
HELIOS -
Hi all
I have a table in the table
I have columns
client_name
customer_id
customer_add
customer_contact_no
Hi HERE client_name is unique_key
I want when I type client_name duplicates then (which is already stored in the database)
message ("customer already exists '");
but I get this error frm:40508
Please guide
Thanks and greetings
VikasBefore INSERT trigger check if the customer already exists or not there then give a message like:
declare cursor c_exists is select 1 from customer where customer_name = :customer.customer_name; begin open c_exists; fetch c_exists into v_exists; close c_exists; if v_exists = 1 then message('customer already exist'); raise form_trigger_failure; end if; end;
You can also do the same thing is WHEN-VALIDATE-ITEM trigger for client_name.
I hope this helps.
Published by: Arif Khadas, April 15, 2010 16:10
-
Error FRM-920101 >; Web server logic question
Hi all
EBS R12 Linux
Module: Approval of order
I encounter error FRM-920101 approve when the button is click :(
Help, please...
Thank you
MsKHello
Apache logs can be placed under the $LOG_HOME/ora/10.1.3/Apache Directory.
Kind regards
Hussein
Maybe you are looking for
-
When I restarted in safe mode, everything worked fine, so I disabled the Add-ons and plug-ins, one at the time but could not find one any of them causing the problem.
-
I got a call from a man speaking Indian, two days in a row telling me that he needed me to go to my computer right now and give him my ID so that it can resolve the error messages that Microsoft had received when I used my computer. The first time th
-
How to restore windows firewall, vista home edition, IE - 9, HP
How can I download for vista home edition, IE 9 windows firewall
-
When I try to print in the Photo Gallery of the FAX screen comes up
I use Windows VISA with all-in-one printer, HP OfficeJet 6310xi. Whenever I try to print a photo to the photo gallery Windows FAX screen happens instead of the print screen. Thank you
-
Get rid of the MySyncUp (DELL)
I have a Dell running Windows 7 and from the beginning I had my sync of files on my desktop, it's extremely frustrating for me, and I uninstalled, deleted it seemed for that through msconfig and nothing yet, it appears!