[ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
[ 1892335 ] Define custom info class at ad_column or ad_field
This commit is contained in:
parent
2a60faf4b1
commit
55b39023cb
|
@ -0,0 +1,75 @@
|
|||
-- Feb 13, 2008 4:39:57 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54356,121,0,18,4,107,115,'AD_Reference_Value_ID',TO_DATE('2008-02-13 16:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Required to specify, if data type is Table or List','D',22,'The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. ','Y','N','N','N','N','N','N','N','N','N','Y','Reference Key',0,TO_DATE('2008-02-13 16:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:39:57 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54356 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:40:01 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
ALTER TABLE AD_Field MODIFY AD_Reference_Value_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:01 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54357,139,0,19,107,'AD_Val_Rule_ID',TO_DATE('2008-02-13 16:41:00','YYYY-MM-DD HH24:MI:SS'),100,'Dynamic Validation Rule','D',22,'These rules define how an entry is determined to valid. You can use variables for dynamic (context sensitive) validation.','Y','N','N','N','N','N','N','N','N','N','Y','Dynamic Validation',0,TO_DATE('2008-02-13 16:41:00','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:01 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54357 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:12 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
ALTER TABLE AD_Field MODIFY AD_Val_Rule_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:04 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54357,54401,0,107,TO_DATE('2008-02-13 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,'Dynamic Validation Rule',14,'@AD_Reference_ID@=17 | @AD_Reference_ID@=18 | @AD_Reference_ID@=19 | @AD_Reference_ID@=28 | @AD_Reference_ID@=30','D','These rules define how an entry is determined to valid. You can use variables for dynamic (context sensitive) validation.','Y','Y','Y','N','N','N','N','Y','Dynamic Validation',280,0,TO_DATE('2008-02-13 16:46:03','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:04 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54401 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:48 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54356,54402,0,107,TO_DATE('2008-02-13 16:46:47','YYYY-MM-DD HH24:MI:SS'),100,'Required to specify, if data type is Table or List',14,'@AD_Reference_ID@=17 | @AD_Reference_ID@=18 | @AD_Reference_ID@=30 | @AD_Reference_ID@=28','D','The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. ','Y','Y','Y','N','N','N','N','N','Reference Key',290,0,TO_DATE('2008-02-13 16:46:47','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:48 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54402 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:47:27 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-02-13 16:47:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=54401
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54402
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53280
|
||||
;
|
||||
|
|
@ -0,0 +1,226 @@
|
|||
-- Feb 13, 2008 4:58:56 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53349,0,'InfoFactoryClass',TO_DATE('2008-02-13 16:58:53','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D','Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','Info Factory Class','Info Factory Class',TO_DATE('2008-02-13 16:58:53','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:58:56 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53349 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:45 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54358,53349,0,10,101,'InfoFactoryClass',TO_DATE('2008-02-13 16:59:44','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D',255,'Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','N','N','N','N','N','N','N','N','N','Y','Info Factory Class',0,TO_DATE('2008-02-13 16:59:44','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:46 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54358 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:50 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
ALTER TABLE AD_Column ADD InfoFactoryClass NVARCHAR2(255)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:42 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54359,53349,0,10,107,'InfoFactoryClass',TO_DATE('2008-02-13 17:01:39','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D',255,'Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','N','N','N','N','N','N','N','N','N','Y','Info Factory Class',0,TO_DATE('2008-02-13 17:01:39','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:42 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54359 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:47 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
ALTER TABLE AD_Field ADD InfoFactoryClass NVARCHAR2(255)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:07:51 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54358,54403,0,101,TO_DATE('2008-02-13 17:07:44','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface',14,'@AD_Reference_ID@=30','D','Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','Y','Y','N','N','N','N','Y','Info Factory Class',350,0,TO_DATE('2008-02-13 17:07:44','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:07:51 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54403 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=54403
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=2574
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2573
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=160
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=161
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=162
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=166
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=2370
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=169
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=10128
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4941
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=50188
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=168
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=159
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=825
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=4940
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=167
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=5121
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=5122
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW AD_FIELD_V
|
||||
(AD_WINDOW_ID, AD_TAB_ID, AD_FIELD_ID, AD_TABLE_ID, AD_COLUMN_ID,
|
||||
NAME, DESCRIPTION, HELP, ISDISPLAYED, DISPLAYLOGIC,
|
||||
DISPLAYLENGTH, SEQNO, SORTNO, ISSAMELINE, ISHEADING,
|
||||
ISFIELDONLY, ISREADONLY, ISENCRYPTEDFIELD, OBSCURETYPE, COLUMNNAME,
|
||||
COLUMNSQL, FIELDLENGTH, VFORMAT, DEFAULTVALUE, ISKEY,
|
||||
ISPARENT, ISMANDATORY, ISIDENTIFIER, ISTRANSLATED, AD_REFERENCE_VALUE_ID,
|
||||
CALLOUT, AD_REFERENCE_ID, AD_VAL_RULE_ID, AD_PROCESS_ID, ISALWAYSUPDATEABLE,
|
||||
READONLYLOGIC, MANDATORYLOGIC, ISUPDATEABLE, ISENCRYPTEDCOLUMN, ISSELECTIONCOLUMN,
|
||||
TABLENAME, VALUEMIN, VALUEMAX, FIELDGROUP, VALIDATIONCODE,
|
||||
INCLUDED_TAB_ID, FIELDGROUPTYPE, IsCollapsedByDefault, InfoFactoryClass)
|
||||
AS
|
||||
SELECT t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||
f.NAME, f.Description, f.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||
c.IsKey, c.IsParent,
|
||||
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) AS AD_Val_Rule_ID, c.AD_Process_ID, c.IsAlwaysUpdateable,
|
||||
c.ReadOnlyLogic, c.MandatoryLogic, c.IsUpdateable, c.IsEncrypted AS IsEncryptedColumn,
|
||||
c.IsSelectionColumn,
|
||||
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||
fg.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||
INNER JOIN AD_REFERENCE r ON (c.AD_Reference_ID = r.AD_Reference_ID)
|
||||
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID = COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||
WHERE f.IsActive = 'Y'
|
||||
AND c.IsActive = 'Y'
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW AD_FIELD_VT
|
||||
(AD_LANGUAGE, AD_WINDOW_ID, AD_TAB_ID, AD_FIELD_ID, AD_TABLE_ID,
|
||||
AD_COLUMN_ID, NAME, DESCRIPTION, HELP, ISDISPLAYED,
|
||||
DISPLAYLOGIC, DISPLAYLENGTH, SEQNO, SORTNO, ISSAMELINE,
|
||||
ISHEADING, ISFIELDONLY, ISREADONLY, ISENCRYPTEDFIELD, OBSCURETYPE,
|
||||
COLUMNNAME, COLUMNSQL, FIELDLENGTH, VFORMAT, DEFAULTVALUE,
|
||||
ISKEY, ISPARENT, ISMANDATORY, ISIDENTIFIER, ISTRANSLATED,
|
||||
AD_REFERENCE_VALUE_ID, CALLOUT, AD_REFERENCE_ID, AD_VAL_RULE_ID, AD_PROCESS_ID,
|
||||
ISALWAYSUPDATEABLE, READONLYLOGIC, MANDATORYLOGIC, ISUPDATEABLE, ISENCRYPTEDCOLUMN,
|
||||
ISSELECTIONCOLUMN, TABLENAME, VALUEMIN, VALUEMAX, FIELDGROUP,
|
||||
VALIDATIONCODE, INCLUDED_TAB_ID, FIELDGROUPTYPE, IsCollapsedByDefault, InfoFactoryClass)
|
||||
AS
|
||||
SELECT trl.AD_LANGUAGE, t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||
trl.NAME, trl.Description, trl.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||
c.IsKey, c.IsParent,
|
||||
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) as AD_Val_Rule_ID, c.AD_Process_ID, c.IsAlwaysUpdateable,
|
||||
c.ReadOnlyLogic, c.MandatoryLogic, c.IsUpdateable, c.IsEncrypted AS IsEncryptedColumn, c.IsSelectionColumn,
|
||||
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||
fgt.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP_TRL fgt ON
|
||||
(f.AD_FieldGroup_ID = fgt.AD_FieldGroup_ID AND trl.AD_LANGUAGE=fgt.AD_LANGUAGE)
|
||||
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||
INNER JOIN AD_REFERENCE r ON (c.AD_Reference_ID = r.AD_Reference_ID)
|
||||
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID=COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||
WHERE f.IsActive = 'Y'
|
||||
AND c.IsActive = 'Y'
|
||||
;
|
|
@ -0,0 +1,75 @@
|
|||
-- Feb 13, 2008 4:39:57 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54356,121,0,18,4,107,115,'AD_Reference_Value_ID',TO_TIMESTAMP('2008-02-13 16:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Required to specify, if data type is Table or List','D',22,'The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. ','Y','N','N','N','N','N','N','N','N','N','Y','Reference Key',0,TO_TIMESTAMP('2008-02-13 16:39:55','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:39:57 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54356 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:40:02 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
insert into t_alter_column values('ad_field','AD_Reference_Value_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:01 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54357,139,0,19,107,'AD_Val_Rule_ID',TO_TIMESTAMP('2008-02-13 16:41:00','YYYY-MM-DD HH24:MI:SS'),100,'Dynamic Validation Rule','D',22,'These rules define how an entry is determined to valid. You can use variables for dynamic (context sensitive) validation.','Y','N','N','N','N','N','N','N','N','N','Y','Dynamic Validation',0,TO_TIMESTAMP('2008-02-13 16:41:00','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:01 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54357 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:41:12 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
insert into t_alter_column values('ad_field','AD_Val_Rule_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:04 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54357,54401,0,107,TO_TIMESTAMP('2008-02-13 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,'Dynamic Validation Rule',14,'@AD_Reference_ID@=17 | @AD_Reference_ID@=18 | @AD_Reference_ID@=19 | @AD_Reference_ID@=28 | @AD_Reference_ID@=30','D','These rules define how an entry is determined to valid. You can use variables for dynamic (context sensitive) validation.','Y','Y','Y','N','N','N','N','Y','Dynamic Validation',280,0,TO_TIMESTAMP('2008-02-13 16:46:03','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:04 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54401 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:48 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54356,54402,0,107,TO_TIMESTAMP('2008-02-13 16:46:47','YYYY-MM-DD HH24:MI:SS'),100,'Required to specify, if data type is Table or List',14,'@AD_Reference_ID@=17 | @AD_Reference_ID@=18 | @AD_Reference_ID@=30 | @AD_Reference_ID@=28','D','The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. ','Y','Y','Y','N','N','N','N','N','Reference Key',290,0,TO_TIMESTAMP('2008-02-13 16:46:47','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:46:48 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54402 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:47:27 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-02-13 16:47:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=54401
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54402
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:48:21 PM SGT
|
||||
-- [ 1887651 ] Add Ad_Reference_Value_ID and AD_Val_Rule_ID to AD_Field
|
||||
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53280
|
||||
;
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
-- Feb 13, 2008 4:58:56 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53349,0,'InfoFactoryClass',TO_TIMESTAMP('2008-02-13 16:58:53','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D','Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','Info Factory Class','Info Factory Class',TO_TIMESTAMP('2008-02-13 16:58:53','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:58:56 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53349 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:45 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54358,53349,0,10,101,'InfoFactoryClass',TO_TIMESTAMP('2008-02-13 16:59:44','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D',255,'Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','N','N','N','N','N','N','N','N','N','Y','Info Factory Class',0,TO_TIMESTAMP('2008-02-13 16:59:44','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:46 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54358 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 4:59:50 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
ALTER TABLE AD_Column ADD COLUMN InfoFactoryClass VARCHAR(255)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:42 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54359,53349,0,10,107,'InfoFactoryClass',TO_TIMESTAMP('2008-02-13 17:01:39','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface','D',255,'Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','N','N','N','N','N','N','N','N','N','Y','Info Factory Class',0,TO_TIMESTAMP('2008-02-13 17:01:39','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:42 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54359 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:01:47 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
ALTER TABLE AD_Field ADD COLUMN InfoFactoryClass VARCHAR(255)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:07:51 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,54358,54403,0,101,TO_TIMESTAMP('2008-02-13 17:07:44','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified class name that implements the InfoFactory interface',14,'@AD_Reference_ID@=30','D','Fully qualified class name that implements the InfoFactory interface. This can be use to provide custom Info class for column.','Y','Y','Y','N','N','N','N','Y','Info Factory Class',350,0,TO_TIMESTAMP('2008-02-13 17:07:44','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:07:51 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54403 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=54403
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=2574
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2573
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=160
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=161
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=162
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=166
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=2370
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=169
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=10128
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4941
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=50188
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=168
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:32 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=159
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=825
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=4940
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=167
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=5121
|
||||
;
|
||||
|
||||
-- Feb 13, 2008 5:08:33 PM SGT
|
||||
-- [ 1892335 ] Define custom info class at ad_column or ad_field
|
||||
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=5122
|
||||
;
|
||||
|
||||
drop view ad_field_v;
|
||||
|
||||
CREATE OR
|
||||
REPLACE VIEW ad_field_v AS
|
||||
SELECT t.ad_window_id,
|
||||
f.ad_tab_id,
|
||||
f.ad_field_id,
|
||||
tbl.ad_table_id,
|
||||
f.ad_column_id,
|
||||
f.NAME,
|
||||
f.description,
|
||||
f.help,
|
||||
f.isdisplayed,
|
||||
f.displaylogic,
|
||||
f.displaylength,
|
||||
f.seqno,
|
||||
f.sortno,
|
||||
f.issameline,
|
||||
f.isheading,
|
||||
f.isfieldonly,
|
||||
f.isreadonly,
|
||||
f.isencrypted AS isencryptedfield,
|
||||
f.obscuretype,
|
||||
c.columnname,
|
||||
c.columnsql,
|
||||
c.fieldlength,
|
||||
c.vformat,
|
||||
c.defaultvalue,
|
||||
c.iskey,
|
||||
c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory,
|
||||
c.isidentifier,
|
||||
c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id,
|
||||
c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id,
|
||||
c.ad_process_id,
|
||||
c.isalwaysupdateable,
|
||||
c.readonlylogic,
|
||||
c.isupdateable,
|
||||
c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn,
|
||||
tbl.tablename,
|
||||
c.valuemin,
|
||||
c.valuemax,
|
||||
fg.NAME AS fieldgroup,
|
||||
vr.code AS validationcode,
|
||||
f.Included_Tab_ID,
|
||||
fg.FieldGroupType,
|
||||
fg.IsCollapsedByDefault AS iscollapsedbydefault,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) as infofactoryclass
|
||||
FROM ((((((AD_FIELD f
|
||||
JOIN AD_TAB t
|
||||
ON ((f.ad_tab_id = t.ad_tab_id)))
|
||||
LEFT JOIN AD_FIELDGROUP fg
|
||||
ON ((f.ad_fieldgroup_id = fg.ad_fieldgroup_id)))
|
||||
LEFT JOIN AD_COLUMN c
|
||||
ON ((f.ad_column_id = c.ad_column_id)))
|
||||
JOIN AD_TABLE tbl
|
||||
ON ((c.ad_table_id = tbl.ad_table_id)))
|
||||
JOIN AD_REFERENCE r
|
||||
ON ((c.ad_reference_id = r.ad_reference_id)))
|
||||
LEFT JOIN AD_VAL_RULE vr
|
||||
ON ((vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id))))
|
||||
WHERE ((f.isactive = 'Y'::bpchar) AND
|
||||
(c.isactive = 'Y'::bpchar))
|
||||
;
|
||||
|
||||
drop view ad_field_vt;
|
||||
|
||||
CREATE OR
|
||||
REPLACE VIEW ad_field_vt AS
|
||||
SELECT trl.AD_LANGUAGE,
|
||||
t.ad_window_id,
|
||||
f.ad_tab_id,
|
||||
f.ad_field_id,
|
||||
tbl.ad_table_id,
|
||||
f.ad_column_id,
|
||||
trl.NAME,
|
||||
trl.description,
|
||||
trl.help,
|
||||
f.isdisplayed,
|
||||
f.displaylogic,
|
||||
f.displaylength,
|
||||
f.seqno,
|
||||
f.sortno,
|
||||
f.issameline,
|
||||
f.isheading,
|
||||
f.isfieldonly,
|
||||
f.isreadonly,
|
||||
f.isencrypted AS isencryptedfield,
|
||||
f.obscuretype,
|
||||
c.columnname,
|
||||
c.columnsql,
|
||||
c.fieldlength,
|
||||
c.vformat,
|
||||
c.defaultvalue,
|
||||
c.iskey,
|
||||
c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory,
|
||||
c.isidentifier,
|
||||
c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id,
|
||||
c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id,
|
||||
c.ad_process_id,
|
||||
c.isalwaysupdateable,
|
||||
c.readonlylogic,
|
||||
c.isupdateable,
|
||||
c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn,
|
||||
tbl.tablename,
|
||||
c.valuemin,
|
||||
c.valuemax,
|
||||
fgt.NAME AS fieldgroup,
|
||||
vr.code AS validationcode,
|
||||
f.Included_Tab_ID,
|
||||
fg.FieldGroupType,
|
||||
fg.IsCollapsedByDefault AS iscollapsedbydefault ,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) as infofactoryclass
|
||||
FROM (((((((AD_FIELD f
|
||||
JOIN AD_FIELD_TRL trl
|
||||
ON ((f.ad_field_id = trl.ad_field_id)))
|
||||
JOIN AD_TAB t
|
||||
ON ((f.ad_tab_id = t.ad_tab_id)))
|
||||
LEFT JOIN AD_FIELDGROUP fg
|
||||
ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
LEFT JOIN AD_FIELDGROUP_TRL fgt
|
||||
ON (((f.ad_fieldgroup_id = fgt.ad_fieldgroup_id) AND
|
||||
((trl.AD_LANGUAGE)::text = (fgt.AD_LANGUAGE)::text))))
|
||||
LEFT JOIN AD_COLUMN c
|
||||
ON ((f.ad_column_id = c.ad_column_id)))
|
||||
JOIN AD_TABLE tbl
|
||||
ON ((c.ad_table_id = tbl.ad_table_id)))
|
||||
JOIN AD_REFERENCE r
|
||||
ON ((c.ad_reference_id = r.ad_reference_id)))
|
||||
LEFT JOIN AD_VAL_RULE vr
|
||||
ON ((vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id))))
|
||||
WHERE ((f.isactive = 'Y'::bpchar) AND
|
||||
(c.isactive = 'Y'::bpchar))
|
||||
;
|
Loading…
Reference in New Issue