attaching triggers to form [message #144633] |
Thu, 27 October 2005 08:43 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Sharaf
Messages: 62 Registered: September 2005 Location: U.K
|
Member |
|
|
i have a trigger working fine in my database environment i need to activate the same in my form. An example is as below
create or replace trigger who_can__err_trig
Before insert on applicant
For each row
Declare
Begin
if
( add_months(:new.dob,12*16) >= trunc(sysdate) )
OR
:new.ELIGIBILITY = 'No'
OR
:new.ANTI_SOCIAL_BEH = 'Yes'
THEN
Raise_application_error(-20100,'Applicant not allowed');
end if;
end who_can__err_trig;
/
I have the above working fine in sql*plus how will i attach it to my form
|
|
|
Re: attaching triggers to form [message #144726 is a reply to message #144633] |
Thu, 27 October 2005 19:03 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
You can't/don't.
You create a validation trigger for an item or a record, or you place the code in a pre-insert and/or pre-update trigger.
David
|
|
|