Home » Developer & Programmer » Forms » attaching triggers to form
attaching triggers to form [message #144633] Thu, 27 October 2005 08:43 Go to next message
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
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
Previous Topic: Forms 4.5 calling function defined in database package not working
Next Topic: forms advanced techniques
Goto Forum:
  


Current Time: Fri Sep 20 03:43:10 CDT 2024