database/model/triggers/AD_TASK_TRG2.xml
changeset 239 a30acae847e1
parent 170 4b5493776a7f
child 735 daced7e311c9
equal deleted inserted replaced
238:006d2d0fdea6 239:a30acae847e1
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="TRIGGER AD_TASK_TRG2">
     2   <database name="TRIGGER AD_TASK_TRG2">
     3     <trigger name="AD_TASK_TRG2" table="AD_TASK" fires="after" insert="true" update="true" delete="true" foreach="row">
     3     <trigger name="AD_TASK_TRG2" table="AD_TASK" fires="after" insert="true" update="true" delete="true" foreach="row">
     4       <body>
     4       <body><![CDATA[
       
     5 
     5 
     6 
     6 
     7 
     7 
     8 
     8 /*************************************************************************
     9 /*************************************************************************
     9 * The contents of this file are subject to the Openbravo  Public  License
    10 * The contents of this file are subject to the Openbravo  Public  License
    25   v_ID_MAP     NUMBER(10) ;
    26   v_ID_MAP     NUMBER(10) ;
    26   v_WindowName VARCHAR2(60):='ad_tasks';
    27   v_WindowName VARCHAR2(60):='ad_tasks';
    27   v_ClassName  VARCHAR2(60) ;
    28   v_ClassName  VARCHAR2(60) ;
    28 BEGIN
    29 BEGIN
    29   IF(UPDATING) THEN
    30   IF(UPDATING) THEN
    30     IF NOT((COALESCE(:old.CLASSNAME, '.') &lt;&gt; COALESCE(:NEW.CLASSNAME, '.')
    31     IF NOT((COALESCE(:old.CLASSNAME, '.') <> COALESCE(:NEW.CLASSNAME, '.')
    31    OR COALESCE(:old.IsActive, '.') &lt;&gt; COALESCE(:NEW.IsActive, '.')))
    32    OR COALESCE(:old.IsActive, '.') <> COALESCE(:NEW.IsActive, '.')))
    32   THEN
    33   THEN
    33       RETURN;
    34       RETURN;
    34     END IF;
    35     END IF;
    35   END IF;
    36   END IF;
    36   IF(DELETING OR UPDATING) THEN
    37   IF(DELETING OR UPDATING) THEN
    92     END IF;
    93     END IF;
    93   END IF;
    94   END IF;
    94 END AD_Task_Trg2
    95 END AD_Task_Trg2
    95 
    96 
    96 
    97 
    97 </body>
    98 
       
    99 ]]></body>
    98     </trigger>
   100     </trigger>
    99   </database>
   101   </database>