From 45a0d28cc5031429ee2e5109a3855a1f59d612d6 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 27 Feb 2011 00:48:06 -0500 Subject: [PATCH] Some "Used in" tabs cannot make zoom - for example zooming to columns from used in tab in Element window. This script implement the zoom. --- .../oracle/738_AddZoomToUsedIn.sql | 65 +++++++++++++++++++ .../postgresql/738_AddZoomToUsedIn.sql | 65 +++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 migration/migration/360lts-release/oracle/738_AddZoomToUsedIn.sql create mode 100644 migration/migration/360lts-release/postgresql/738_AddZoomToUsedIn.sql diff --git a/migration/migration/360lts-release/oracle/738_AddZoomToUsedIn.sql b/migration/migration/360lts-release/oracle/738_AddZoomToUsedIn.sql new file mode 100644 index 0000000000..1b01b23f06 --- /dev/null +++ b/migration/migration/360lts-release/oracle/738_AddZoomToUsedIn.sql @@ -0,0 +1,65 @@ +-- Jul 22, 2010 6:13:43 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=30,Updated=TO_DATE('2010-07-22 18:13:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58569 +; + +-- Jul 22, 2010 6:14:05 PM COT +-- Add zoom for used in tabs +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Reference_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,167,59576,0,19,53298,TO_DATE('2010-07-22 18:14:04','YYYY-MM-DD HH24:MI:SS'),100,'Field on a database table',10,'D','The Field identifies a field on a database table.','Y','Y','Y','N','N','N','N','N','Field',20,0,TO_DATE('2010-07-22 18:14:04','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 22, 2010 6:14:05 PM COT +-- Add zoom for used in tabs +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=59576 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Jul 22, 2010 6:14:14 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_DATE('2010-07-22 18:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58569 +; + +-- Jul 22, 2010 6:14:19 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_DATE('2010-07-22 18:14:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58568 +; + +-- Jul 22, 2010 6:14:32 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4599 +; + +-- Jul 22, 2010 6:14:32 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4574 +; + +-- Jul 22, 2010 6:14:41 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET AD_Reference_ID=19,Updated=TO_DATE('2010-07-22 18:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4599 +; + +-- Jul 22, 2010 6:14:55 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_DATE('2010-07-22 18:14:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58566 +; + +-- Jul 22, 2010 6:15:02 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10, SeqNo=30,Updated=TO_DATE('2010-07-22 18:15:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58567 +; + +-- Jul 22, 2010 6:15:22 PM COT +-- Add zoom for used in tabs +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,2814,59577,0,53297,TO_DATE('2010-07-22 18:15:22','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','Y','N','N','N','N','N','Process Parameter',20,0,TO_DATE('2010-07-22 18:15:22','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 22, 2010 6:15:22 PM COT +-- Add zoom for used in tabs +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=59577 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Jul 22, 2010 6:16:15 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET AD_Reference_ID=19, IsMandatory=NULL,Updated=TO_DATE('2010-07-22 18:16:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59577 +; + diff --git a/migration/migration/360lts-release/postgresql/738_AddZoomToUsedIn.sql b/migration/migration/360lts-release/postgresql/738_AddZoomToUsedIn.sql new file mode 100644 index 0000000000..c9b58d7b8a --- /dev/null +++ b/migration/migration/360lts-release/postgresql/738_AddZoomToUsedIn.sql @@ -0,0 +1,65 @@ +-- Jul 22, 2010 6:13:43 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=30,Updated=TO_TIMESTAMP('2010-07-22 18:13:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58569 +; + +-- Jul 22, 2010 6:14:05 PM COT +-- Add zoom for used in tabs +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Reference_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,167,59576,0,19,53298,TO_TIMESTAMP('2010-07-22 18:14:04','YYYY-MM-DD HH24:MI:SS'),100,'Field on a database table',10,'D','The Field identifies a field on a database table.','Y','Y','Y','N','N','N','N','N','Field',20,0,TO_TIMESTAMP('2010-07-22 18:14:04','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 22, 2010 6:14:05 PM COT +-- Add zoom for used in tabs +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=59576 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Jul 22, 2010 6:14:14 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_TIMESTAMP('2010-07-22 18:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58569 +; + +-- Jul 22, 2010 6:14:19 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_TIMESTAMP('2010-07-22 18:14:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58568 +; + +-- Jul 22, 2010 6:14:32 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4599 +; + +-- Jul 22, 2010 6:14:32 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4574 +; + +-- Jul 22, 2010 6:14:41 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2010-07-22 18:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4599 +; + +-- Jul 22, 2010 6:14:55 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10,Updated=TO_TIMESTAMP('2010-07-22 18:14:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58566 +; + +-- Jul 22, 2010 6:15:02 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET DisplayLength=10, SeqNo=30,Updated=TO_TIMESTAMP('2010-07-22 18:15:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58567 +; + +-- Jul 22, 2010 6:15:22 PM COT +-- Add zoom for used in tabs +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,2814,59577,0,53297,TO_TIMESTAMP('2010-07-22 18:15:22','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','Y','N','N','N','N','N','Process Parameter',20,0,TO_TIMESTAMP('2010-07-22 18:15:22','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 22, 2010 6:15:22 PM COT +-- Add zoom for used in tabs +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=59577 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Jul 22, 2010 6:16:15 PM COT +-- Add zoom for used in tabs +UPDATE AD_Field SET AD_Reference_ID=19, IsMandatory=NULL,Updated=TO_TIMESTAMP('2010-07-22 18:16:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59577 +; +