Post change trigger (two threads merged) [message #173943] |
Thu, 25 May 2006 05:50 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
qewani
Messages: 51 Registered: December 2005 Location: uaq
|
Member |
|
|
Am facing problem when i add a post change trigger to my edit customer details form i get an error when trying to edit the customer records and a message appears saying that unable to save records, however the edit button works fine when i remove the post change trigger.??
what is the problem ?
cant i use the post change trigger with the edit button?!
|
|
|
|
What is the problem with this form...here is what i have [message #174264 is a reply to message #173943] |
Sat, 27 May 2006 00:23 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
qewani
Messages: 51 Registered: December 2005 Location: uaq
|
Member |
|
|
i have a edit user form where it contains user name (it is primary key), user type and password.
i have added a post change trigger to the user name, so when i type the user name it show me the other details of the user.
when i execute the query and make changes in the records and want to save it, it save it and update it without any errors,
but when i show the records of the user by using the post change trigger and then when i update his record and want to save it it gives me an error says
FRM-40508: ORACLE error :unable to insert record.
and also this error says
ORA-00001: unique constraint (S200207680.USE_1_PK) violated
please any help?!
|
|
|
|
|
|
|
Re: Post change trigger (two threads merged) [message #174551 is a reply to message #173943] |
Mon, 29 May 2006 09:15 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
qewani
Messages: 51 Registered: December 2005 Location: uaq
|
Member |
|
|
i am using form builder 9i
i have tried using the when validate item but still the same problem
here is my code>
Begin
select JOB_NAME, EMP_STATUS,PAY_CARD_NO,CARD_ISSUE_DATE,CONTRACT_END_DATE,CARD_EXPIRY_DATE,
REMARKS, CONTRACT_START_DATE,SALARY,PEO_PER_CODE,COM_COM_CODE
Into :MOL_EMPLOYEESES.JOB_NAME, :MOL_EMPLOYEESES.EMP_STATUS,
:MOL_EMPLOYEESES.PAY_CARD_NO ,:MOL_EMPLOYEESES.CARD_ISSUE_DATE,:MOL_EMPLOYEESES.CONTRACT_END_DATE,
:MOL_EMPLOYEESES.CARD_EXPIRY_DATE,
:MOL_EMPLOYEESES.REMARKS, :MOL_EMPLOYEESES.CONTRACT_START_DATE, :MOL_EMPLOYEESES.SALARY,
:MOL_EMPLOYEESES.PEO_PER_CODE, :MOL_EMPLOYEESES.COM_COM_CODE
from MOL_EMPLOYEESES
where MOL_EMPLOYEESES.CARD_NO = :MOL_EMPLOYEESES.CARD_NO;
select PER_NAME
Into :MOL_EMPLOYEESES.PER_NAME
from MOL_PEOPLES
where MOL_PEOPLES.PER_CODE = :MOL_EMPLOYEESES.PEO_PER_CODE;
select COM_NAME
Into :MOL_EMPLOYEESES.COM_NAME
from MOL_COMPANIESES
where MOL_COMPANIESES.COM_CODE = :MOL_EMPLOYEESES.COM_COM_CODE;
End;
please help me?!
|
|
|
|