oracle - Error when execuuting Before Insert Trigger -


i have oracle, apex application masterdetail form. need beforeinsert trigger details part of form. need populate fields beforeinsert_charges data table (ahar_partslabor) have far yet keeps giving me message error:

ora-04082: new or old references not allowed in table level triggers.

create or replace trigger beforeinsert_charges before insert on ahar_repairorder_charges  --declarar variables      --t_charges_type in char(11);      --t_charges_price in number;      --t_charges_discount in number;       --validar que el char_code ingresado por el usuario exista  begin  --select para pasar los valores de partslabor charges       select (partlabor_type, partlabor_price, partlabor_discount)     (:new.charges_type, :new.charges_price, :new.harges_discount)      ahar_partslabor     :new.charge_code = partlabor_id;  end; 

in order able change :new values have use "for each row" trigger:

create or replace trigger beforeinsert_charges before insert on ahar_repairorder_charges each row 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -