Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FRM-40735 WHEN-MOUSE-CLICK trigger raised unhandled exception ora-06502

431812Dec 18 2005 — edited Dec 24 2005
Dear friends,
I had created a form in which, i get empno,empname from database table with vertical scroll bar and i should update the datas into another table apart from empno,empname by clicking the options out of three radiobuttons created. Each radio button indicating different amount to be entered. and the user has to just click the the radio buttons options along side the empno,empname scrolling all the employees in the table.
What are the possible step i should take??
I usually get empno,empname by just entering deptno,another item by just entering the deptno in the form.
I have given coding in the when -radio-changed trigger as---
if :adv.radio='1' then
insert into floodadv (empno,ename,opt1_2500)
select empno,ename,2500 from emp where
:deptno=deptno and :empno=empno and :ename=ename;
execute_query('VALIDATE');
elsif :adv.radio='2' then
insert into floodadv (empno,ename,opt2_basic)
select empno,ename,sal from emp where
:deptno=deptno and :empno=empno and :ename=ename;
execute_query('VALIDATE');
elsif :adv.radio='3' then
insert into floodadv (empno,ename,opt2_basic)
select empno,ename,0 from emp where
:deptno=deptno and :empno=empno and :ename=ename;
execute_query('VALIDATE');
end if;

but when i commit by pressing save (commit_form;) it shows error frm-40508 unable to insert record. what shall i do to insert record into another table along with empno,empname,deptno.
please explain and do need ful. I have to insert datas in tabular format
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2006
Added on Dec 18 2005
3 comments
1,689 views