-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
234 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...stem/10-de.metas.adempiere/5517000_sys_gh1178webui_AD_Tab_IsRefreshViewOnChangeEvents.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-- 2019-03-25T18:03:12.314 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,576297,0,'IsRefreshViewOnChangeEvents',TO_TIMESTAMP('2019-03-25 18:03:11','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Refresh view on change events','Refresh view on change events',TO_TIMESTAMP('2019-03-25 18:03:11','YYYY-MM-DD HH24:MI:SS'),100) | ||
; | ||
|
||
-- 2019-03-25T18:03:12.386 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, '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' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=576297 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) | ||
; | ||
|
||
-- 2019-03-25T18:03:29.073 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
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,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,564636,576297,0,20,106,'IsRefreshViewOnChangeEvents',TO_TIMESTAMP('2019-03-25 18:03:28','YYYY-MM-DD HH24:MI:SS'),100,'N','N','D',1,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Refresh view on change events',0,0,TO_TIMESTAMP('2019-03-25 18:03:28','YYYY-MM-DD HH24:MI:SS'),100,0) | ||
; | ||
|
||
-- 2019-03-25T18:03:29.111 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
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=564636 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) | ||
; | ||
|
||
-- 2019-03-25T18:03:32.657 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
/* DDL */ SELECT public.db_alter_table('AD_Tab','ALTER TABLE public.AD_Tab ADD COLUMN IsRefreshViewOnChangeEvents CHAR(1) DEFAULT ''N'' CHECK (IsRefreshViewOnChangeEvents IN (''Y'',''N'')) NOT NULL') | ||
; | ||
|
||
-- 2019-03-25T18:03:53.776 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,564636,578093,0,106,TO_TIMESTAMP('2019-03-25 18:03:53','YYYY-MM-DD HH24:MI:SS'),100,1,'D','Y','N','N','N','N','N','N','N','Refresh view on change events',TO_TIMESTAMP('2019-03-25 18:03:53','YYYY-MM-DD HH24:MI:SS'),100) | ||
; | ||
|
||
-- 2019-03-25T18:03:53.789 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
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=578093 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) | ||
; | ||
|
||
-- 2019-03-25T18:04:33.808 | ||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator | ||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=480,Updated=TO_TIMESTAMP('2019-03-25 18:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=578093 | ||
; | ||
|
132 changes: 132 additions & 0 deletions
132
...src/main/sql/postgresql/system/10-de.metas.adempiere/5517001_sys_gh1178webui_AD_Tab_v.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
DROP VIEW IF EXISTS ad_tab_v; | ||
CREATE OR REPLACE VIEW ad_tab_v AS | ||
SELECT | ||
-- trl.ad_language | ||
t.ad_tab_id | ||
, t.Template_Tab_ID | ||
, t.ad_window_id | ||
, t.InternalName | ||
, t.ad_table_id | ||
, t.name | ||
, t.description | ||
, t.help | ||
, t.seqno | ||
, t.issinglerow | ||
, t.hastree | ||
, t.isinfotab | ||
, tbl.replicationtype | ||
, tbl.tablename | ||
, tbl.accesslevel | ||
, tbl.issecurityenabled | ||
, tbl.isdeleteable | ||
, tbl.ishighvolume | ||
, tbl.isview | ||
, 'N'::bpchar AS hasassociation | ||
, t.istranslationtab | ||
, t.isreadonly | ||
, t.ad_image_id | ||
, t.tablevel | ||
, t.whereclause | ||
, t.orderbyclause | ||
, t.commitwarning | ||
, t.readonlylogic | ||
, t.displaylogic | ||
, t.ad_column_id | ||
, t.ad_process_id | ||
, t.issorttab | ||
, t.isinsertrecord | ||
, t.isadvancedtab | ||
, t.ad_columnsortorder_id | ||
, t.ad_columnsortyesno_id | ||
, t.included_tab_id | ||
, t.parent_column_id | ||
, t.isrefreshallonactivate | ||
, t.issearchactive | ||
, t.defaultwhereclause | ||
, t.issearchcollapsed | ||
, t.isqueryonload | ||
, t.isgridmodeonly | ||
, t.ad_message_id | ||
, t.ischeckparentschanged | ||
, t.maxqueryrecords | ||
, t.EntityType | ||
, t.AllowQuickInput | ||
, t.IsRefreshViewOnChangeEvents | ||
FROM ad_tab t | ||
JOIN ad_table tbl ON t.ad_table_id = tbl.ad_table_id | ||
WHERE t.isactive = 'Y'::bpchar AND tbl.isactive = 'Y'::bpchar; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
DROP VIEW IF EXISTS ad_tab_vt; | ||
CREATE OR REPLACE VIEW ad_tab_vt AS | ||
SELECT | ||
trl.ad_language | ||
, t.ad_tab_id | ||
, t.Template_Tab_ID | ||
, t.ad_window_id | ||
, t.InternalName | ||
, t.ad_table_id | ||
, trl.name | ||
, t.name as Name_BaseLang | ||
, trl.description | ||
, t.description as Description_BaseLang | ||
, trl.help | ||
, t.help as Help_BaseLang | ||
, t.seqno | ||
, t.issinglerow | ||
, t.hastree | ||
, t.isinfotab | ||
, tbl.replicationtype | ||
, tbl.tablename | ||
, tbl.accesslevel | ||
, tbl.issecurityenabled | ||
, tbl.isdeleteable | ||
, tbl.ishighvolume | ||
, tbl.isview | ||
, 'N'::bpchar AS hasassociation | ||
, t.istranslationtab | ||
, t.isreadonly | ||
, t.ad_image_id | ||
, t.tablevel | ||
, t.whereclause | ||
, t.orderbyclause | ||
, trl.commitwarning | ||
, t.CommitWarning as CommitWarning_BaseLang | ||
, t.readonlylogic | ||
, t.displaylogic | ||
, t.ad_column_id | ||
, t.ad_process_id | ||
, t.issorttab | ||
, t.isinsertrecord | ||
, t.isadvancedtab | ||
, t.ad_columnsortorder_id | ||
, t.ad_columnsortyesno_id | ||
, t.included_tab_id | ||
, t.parent_column_id | ||
, t.isrefreshallonactivate | ||
, t.issearchactive | ||
, t.defaultwhereclause | ||
, t.issearchcollapsed | ||
, t.isqueryonload | ||
, t.isgridmodeonly | ||
, t.ad_message_id | ||
, t.ischeckparentschanged | ||
, t.maxqueryrecords | ||
, t.EntityType | ||
, t.AllowQuickInput | ||
, t.IsRefreshViewOnChangeEvents | ||
FROM ad_tab t | ||
JOIN ad_table tbl ON t.ad_table_id = tbl.ad_table_id | ||
JOIN ad_tab_trl trl ON t.ad_tab_id = trl.ad_tab_id | ||
WHERE t.isactive = 'Y'::bpchar AND tbl.isactive = 'Y'::bpchar; | ||
|