📄 ad_column_trg.sql
字号:
CREATE OR REPLACE TRIGGER AD_Column_Trg
AFTER UPDATE OF Name, Description, Help
ON AD_Column
FOR EACH ROW
DECLARE
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CPM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: AD_Column_Trg.sql,v 1.6 2002/10/21 04:49:46 jjanke Exp $
***
* Title: Column After Update
* Description:
* Syncronize Name, .. with Field, if centrally maintained
************************************************************************/
BEGIN
/**
* Sync Names
* - Buttons are updated directly
*/
IF (UPDATING AND :new.AD_Reference_ID <> 28) THEN
UPDATE AD_Field
SET Name = :new.Name,
Description = :new.Description,
Help = :new.Help
-- Updated = SysDate
WHERE AD_Column_ID = :new.AD_Column_ID
AND IsCentrallyMaintained='Y';
END IF;
END AD_Column_Trg;
/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -