iDempiere IDEMPIERE-234 Configurable Toolbar.

- Bug fixes for report viewer button control.
- Added window toolbar button.
- Added custom window button using osgi service.
- Refactor ExportAction as an custom window button service example.
This commit is contained in:
Heng Sin Low 2012-10-28 00:31:25 +08:00
parent 02c508d425
commit 3c4c00a409
46 changed files with 3188 additions and 203 deletions

View File

@ -0,0 +1,958 @@
-- Oct 23, 2012 5:37:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-23 17:37:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200068
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window SET Description='Maintain toolbar button access rule', Name='Role Toolbar Button Access',Updated=TO_DATE('2012-10-23 17:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu SET IsActive='Y', Name='Role Toolbar Button Access', Description='Maintain toolbar button access rule',Updated=TO_DATE('2012-10-23 17:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200001
;
-- Oct 23, 2012 5:44:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table SET Description='Toolbar button access rule', Name='Toolbar Button Access',Updated=TO_DATE('2012-10-23 17:44:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200004
;
-- Oct 23, 2012 5:44:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=200004
;
-- Oct 23, 2012 5:45:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,CreatedBy,Updated,AD_Org_ID,IsActive,IsAutocomplete,IsAllowLogging,Created,IsUpdateable,AD_Column_UU,IsAlwaysUpdateable,Help,IsAllowCopy,UpdatedBy,DefaultValue,IsEncrypted,ColumnName,Description,Name,AD_Client_ID,AD_Column_ID,SeqNoSelection,IsToolbarButton) VALUES (1,200004,'D','Y','N','N',0,'N',1,'N',20,'N','N',2079,100,TO_DATE('2012-10-23 17:45:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N','Y',TO_DATE('2012-10-23 17:45:04','YYYY-MM-DD HH24:MI:SS'),'N','28bc855d-3815-43ec-b3f6-d053ce1368a5','N','If selected (excluded), the role cannot access the data specified. If not selected (included), the role can ONLY access the data specified. Exclude items represent a negative list (i.e. you don''t have access to the listed items). Include items represent a positive list (i.e. you only have access to the listed items).
<br>You would usually not mix Exclude and Include. If you have one include rule in your list, you would only have access to that item anyway.','Y',100,'Y','N','IsExclude','Exclude access to the data - if not selected Include access to the data','Exclude',0,200811,0,'N')
;
-- Oct 23, 2012 5:45:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200811 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 23, 2012 5:46:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,Help,CreatedBy,Updated,EntityType,IsDisplayed,IsFieldOnly,IsDisplayedGrid,SeqNoGrid,AD_Field_UU,DisplayLength,Description,Name,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200003,'N','N',200811,80,'Y',200730,'Y',100,0,TO_DATE('2012-10-23 17:46:35','YYYY-MM-DD HH24:MI:SS'),0,'If selected (excluded), the role cannot access the data specified. If not selected (included), the role can ONLY access the data specified. Exclude items represent a negative list (i.e. you don''t have access to the listed items). Include items represent a positive list (i.e. you only have access to the listed items).
<br>You would usually not mix Exclude and Include. If you have one include rule in your list, you would only have access to that item anyway.',100,TO_DATE('2012-10-23 17:46:35','YYYY-MM-DD HH24:MI:SS'),'D','Y','N','Y',80,'94cefb8d-5e6f-453c-b133-7ab99e7928e4',0,'Exclude access to the data - if not selected Include access to the data','Exclude','Y',2,2,1)
;
-- Oct 23, 2012 5:46:37 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200730 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)
;
-- Oct 23, 2012 5:46:50 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict ADD IsExclude CHAR(1) DEFAULT 'Y' CHECK (IsExclude IN ('Y','N')) NOT NULL
;
-- Oct 23, 2012 5:50:47 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET MandatoryLogic='@#AD_Client_ID@>0',Updated=TO_DATE('2012-10-23 17:50:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200108
;
-- Oct 23, 2012 6:02:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET Name='Toolbar Button Access',Updated=TO_DATE('2012-10-23 18:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200003
;
-- Oct 23, 2012 6:03:14 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2012-10-23 18:03:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200108
;
-- Oct 23, 2012 6:03:20 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y', IsToolbarButton='N',Updated=TO_DATE('2012-10-23 18:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200105
;
-- Oct 23, 2012 6:03:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y', IsToolbarButton='N',Updated=TO_DATE('2012-10-23 18:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200111
;
-- Oct 23, 2012 6:14:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table SET Name='Toolbar Button',Updated=TO_DATE('2012-10-23 18:14:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200003
;
-- Oct 23, 2012 6:14:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window SET Name='Toolbar Button',Updated=TO_DATE('2012-10-23 18:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200000
;
-- Oct 23, 2012 6:14:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu SET IsActive='Y', Name='Toolbar Button', Description=NULL,Updated=TO_DATE('2012-10-23 18:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200000
;
-- Oct 23, 2012 6:19:16 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='AD_Ref_List.Value IN (''W'',''R'')', Name='AD_ToolBarButton Action - Window/Report',Updated=TO_DATE('2012-10-23 18:19:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200002
;
-- Oct 23, 2012 6:19:26 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2012-10-23 18:19:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200105
;
-- Oct 23, 2012 6:19:35 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict MODIFY Action CHAR(1)
;
-- Oct 23, 2012 6:19:35 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict MODIFY Action NOT NULL
;
-- Oct 23, 2012 6:24:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (Version,AD_Table_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,CreatedBy,Updated,AD_Org_ID,IsActive,IsAutocomplete,IsAllowLogging,Created,IsUpdateable,AD_Column_UU,IsAlwaysUpdateable,Help,IsAllowCopy,UpdatedBy,DefaultValue,AD_Val_Rule_ID,IsEncrypted,ColumnName,Description,Name,AD_Client_ID,AD_Column_ID,SeqNoSelection,IsToolbarButton) VALUES (1,200003,'D',104,'Y','N','N',0,'N',1,'N',17,'N','N',152,100,TO_DATE('2012-10-23 18:24:33','YYYY-MM-DD HH24:MI:SS'),0,'Y','N','Y',TO_DATE('2012-10-23 18:24:33','YYYY-MM-DD HH24:MI:SS'),'Y','bd152532-f402-4590-b889-02b79fee52b1','N','The Action field is a drop down list box which indicates the Action to be performed for this Item.','Y',100,'W',200002,'N','Action','Indicates the Action to be performed','Action',0,200812,0,'N')
;
-- Oct 23, 2012 6:24:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200812 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 23, 2012 6:24:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD Action CHAR(1) DEFAULT 'W' NOT NULL
;
-- Oct 23, 2012 6:27:22 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Val_Rule (Code,Updated,UpdatedBy,Created,EntityType,Name,Type,CreatedBy,AD_Val_Rule_UU,AD_Client_ID,IsActive,AD_Org_ID,AD_Val_Rule_ID) VALUES ('(AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )',TO_DATE('2012-10-23 18:27:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-10-23 18:27:20','YYYY-MM-DD HH24:MI:SS'),'D','AD_ToolbarButton of Action','S',100,'a6553b61-35ba-4bae-add1-6eeb6851d051',0,'Y',0,200011)
;
-- Oct 23, 2012 6:27:37 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET AD_Val_Rule_ID=200011, IsToolbarButton='N',Updated=TO_DATE('2012-10-23 18:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200104
;
-- Oct 23, 2012 6:28:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,Help,CreatedBy,Updated,EntityType,IsDisplayed,IsFieldOnly,IsDisplayedGrid,SeqNoGrid,AD_Field_UU,DisplayLength,Description,Name,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200002,'N','N',200812,120,'Y',200731,'N',100,0,TO_DATE('2012-10-23 18:28:43','YYYY-MM-DD HH24:MI:SS'),0,'The Action field is a drop down list box which indicates the Action to be performed for this Item.',100,TO_DATE('2012-10-23 18:28:43','YYYY-MM-DD HH24:MI:SS'),'D','Y','N','Y',120,'fc97d18a-d3e0-4285-bc9c-bd9fb4f16a71',0,'Indicates the Action to be performed','Action','Y',1,2,1)
;
-- Oct 23, 2012 6:28:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200731 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)
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200054
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200731
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200056
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200057
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200051
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200052
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200058
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200059
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=200053
;
ALTER TABLE AD_ToolBarButtonRestrict MODIFY Classname NULL
;
UPDATE AD_ToolbarButton SET Classname=NULL WHERE Classname IS NOT NULL
;
-- Oct 24, 2012 4:40:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200059
;
-- Oct 24, 2012 4:40:20 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200060
;
-- Oct 24, 2012 4:40:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200061
;
-- Oct 24, 2012 4:40:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200062
;
-- Oct 24, 2012 4:40:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200063
;
-- Oct 24, 2012 4:40:41 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET Action='R',Updated=TO_DATE('2012-10-24 16:40:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200064
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200054
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200056
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200057
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200051
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200058
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=200731
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200058
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200731
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200057
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200051
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200058, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:49:32 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET DisplayLogic='@Action@=R',Updated=TO_DATE('2012-10-24 16:49:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200615
;
-- Oct 24, 2012 4:52:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2012-10-24 16:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200070
;
-- Oct 24, 2012 4:53:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2012-10-24 16:53:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200615
;
-- Oct 24, 2012 5:36:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2012-10-24 17:36:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200087
;
-- Oct 24, 2012 5:37:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',30,'N',125,TO_DATE('2012-10-24 17:37:46','YYYY-MM-DD HH24:MI:SS'),'N','Y','0759632a-25f9-48e5-a6e4-13214fa8d57c','Y','N','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y','Y',100,TO_DATE('2012-10-24 17:37:46','YYYY-MM-DD HH24:MI:SS'),0,100,0,200813,'N',0)
;
-- Oct 24, 2012 5:37:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200813 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:38:55 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',19,'N',117,TO_DATE('2012-10-24 17:38:53','YYYY-MM-DD HH24:MI:SS'),'N','Y','208abde6-b52c-4d25-9051-36e139e6214a','Y','N','AD_Process_ID','Process or Report','The Process field identifies a unique Process or Report in the system.','Process','Y','Y',100,TO_DATE('2012-10-24 17:38:53','YYYY-MM-DD HH24:MI:SS'),0,100,0,200814,'N',0)
;
-- Oct 24, 2012 5:38:55 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200814 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:41:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',2000,'N',14,'N',283,TO_DATE('2012-10-24 17:41:03','YYYY-MM-DD HH24:MI:SS'),'N','Y','f55fe6cb-34f8-4291-a879-44f8f7b9d7cf','Y','N','DisplayLogic','If the Field is displayed, the result determines if the field is actually displayed','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)','Display Logic','Y','Y',100,TO_DATE('2012-10-24 17:41:03','YYYY-MM-DD HH24:MI:SS'),0,100,0,200815,'N',0)
;
-- Oct 24, 2012 5:41:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200815 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:50:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,DefaultValue,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',11,'N',566,TO_DATE('2012-10-24 17:50:22','YYYY-MM-DD HH24:MI:SS'),'N','Y','093d28e9-b81f-4e86-8e43-fcadcf708af6','@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ToolbarButton WHERE AD_Tab_ID=@AD_Tab_ID@','Y','N','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y','Y',100,TO_DATE('2012-10-24 17:50:22','YYYY-MM-DD HH24:MI:SS'),0,100,0,200816,'N',0)
;
-- Oct 24, 2012 5:50:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200816 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:50:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD AD_Tab_ID NUMBER(10) DEFAULT NULL
;
-- Oct 24, 2012 5:51:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD AD_Process_ID NUMBER(10) DEFAULT NULL
;
-- Oct 24, 2012 5:51:28 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD DisplayLogic NVARCHAR2(2000) DEFAULT NULL
;
-- Oct 24, 2012 5:51:38 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD SeqNo NUMBER(10) DEFAULT NULL
;
-- Oct 24, 2012 5:54:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200004,'D','N','N','N',0,'N',10,'N',19,163,'N',125,TO_DATE('2012-10-24 17:54:45','YYYY-MM-DD HH24:MI:SS'),'N','Y','16e082c5-c744-4f85-8a3a-f139690521af','Y','N','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y','Y',100,TO_DATE('2012-10-24 17:54:45','YYYY-MM-DD HH24:MI:SS'),0,100,0,200817,'N',0)
;
-- Oct 24, 2012 5:54:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200817 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:54:53 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict ADD AD_Tab_ID NUMBER(10) DEFAULT NULL
;
-- Oct 24, 2012 5:58:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,IsDisplayedGrid,SeqNoGrid,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,DisplayLogic,Name,UpdatedBy,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200003,'N','N',200817,90,'Y',200732,'N','The Tab indicates a tab that displays within a window.',0,TO_DATE('2012-10-24 17:58:33','YYYY-MM-DD HH24:MI:SS'),'N',90,'D',0,'Tab within a Window','Y','N','0ba360c9-e34d-45a8-a5ff-0dbaf222f82c',100,TO_DATE('2012-10-24 17:58:33','YYYY-MM-DD HH24:MI:SS'),0,'@Action@=W','Tab',100,'Y',4,2,1)
;
-- Oct 24, 2012 5:58:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200732 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)
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200070
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200732
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200068
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200730
;
-- Oct 24, 2012 6:01:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='((AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )) AND (AD_ToolbarButton.AD_Tab_ID IS NULL OR AD_ToolbarButton.AD_Tab_ID=@AD_Tab_ID@))',Updated=TO_DATE('2012-10-24 18:01:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200011
;
-- Oct 24, 2012 6:03:27 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=90,Updated=TO_DATE('2012-10-24 18:03:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=115
;
-- Oct 24, 2012 6:05:49 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Tab (IsSortTab,ImportFields,Processing,AD_Window_ID,SeqNo,AD_Table_ID,HasTree,IsInfoTab,AD_Column_ID,AD_Client_ID,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,IsReadOnly,AD_Org_ID,Created,CreatedBy,Updated,Name,OrderByClause,IsSingleRow,IsTranslationTab,UpdatedBy,IsActive,AD_Tab_ID) VALUES ('N','N','N',102,80,200003,'N','N',200813,0,'Y','N',2,'b67bbfa7-d919-431f-88e0-74bf410c321d','D','N',0,TO_DATE('2012-10-24 18:05:48','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-10-24 18:05:48','YYYY-MM-DD HH24:MI:SS'),'Toolbar Button','SeqNo','N','N',100,'Y',200028)
;
-- Oct 24, 2012 6:05:50 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200028 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- Oct 24, 2012 6:06:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200812,'Y',200733,'N','The Action field is a drop down list box which indicates the Action to be performed for this Item.',0,TO_DATE('2012-10-24 18:06:57','YYYY-MM-DD HH24:MI:SS'),'D',0,'Indicates the Action to be performed','Y','N','431eb0bc-d764-4a77-843d-537ea5b0178e',100,TO_DATE('2012-10-24 18:06:57','YYYY-MM-DD HH24:MI:SS'),1,'Action',100,'Y')
;
-- Oct 24, 2012 6:06:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200733 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)
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200095,'Y',200734,'N',0,TO_DATE('2012-10-24 18:06:58','YYYY-MM-DD HH24:MI:SS'),'D',0,'The class name that implements the interface for toolbar actions','Y','N','6420886d-cd75-4159-a1ca-eeae6d3309d7',100,TO_DATE('2012-10-24 18:06:58','YYYY-MM-DD HH24:MI:SS'),255,'Action Class Name',100,'Y')
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200734 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)
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200096,'Y',200735,'N','Used to get the corresponding message and Icon name prefix',0,TO_DATE('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),'D',0,'Action name on the toolbar','Y','N','944ffe4d-5a59-4352-99ef-2b6d0349932f',100,TO_DATE('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),60,'Action Name',100,'Y')
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200735 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)
;
-- Oct 24, 2012 6:07:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200089,'Y',200736,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',0,TO_DATE('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),'D',0,'The record is active in the system','Y','N','2ed0ef54-e204-4b18-bafa-4f9b8dfb68c6',100,TO_DATE('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),1,'Active',100,'Y')
;
-- Oct 24, 2012 6:07:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200736 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)
;
-- Oct 24, 2012 6:07:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200204,'Y',200737,'N',0,TO_DATE('2012-10-24 18:07:00','YYYY-MM-DD HH24:MI:SS'),'D',0,'Y','N','82384725-b699-4676-9bf9-f41018683484',100,TO_DATE('2012-10-24 18:07:00','YYYY-MM-DD HH24:MI:SS'),36,'AD_ToolBarButton_UU',100,'Y')
;
-- Oct 24, 2012 6:07:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200737 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)
;
-- Oct 24, 2012 6:07:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200083,'Y',200738,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',0,TO_DATE('2012-10-24 18:07:01','YYYY-MM-DD HH24:MI:SS'),'D',0,'Client/Tenant for this installation.','Y','N','f70ffbf9-81c6-4760-bf65-662157d15d11',100,TO_DATE('2012-10-24 18:07:01','YYYY-MM-DD HH24:MI:SS'),22,'Client',100,'Y')
;
-- Oct 24, 2012 6:07:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200738 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)
;
-- Oct 24, 2012 6:07:03 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200088,'Y',200739,'N',0,TO_DATE('2012-10-24 18:07:02','YYYY-MM-DD HH24:MI:SS'),'D',0,'Y','N','f4d110db-ca5e-475a-9d2c-a2a15df8e228',100,TO_DATE('2012-10-24 18:07:02','YYYY-MM-DD HH24:MI:SS'),255,'Component Name',100,'Y')
;
-- Oct 24, 2012 6:07:03 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200739 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)
;
-- Oct 24, 2012 6:07:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200094,'Y',200740,'N','The migration "resets" the system to the current/original setting. If selected you can save the customization and re-apply it. Please note that you need to check, if your customization has no negative side effect in the new release.',0,TO_DATE('2012-10-24 18:07:03','YYYY-MM-DD HH24:MI:SS'),'D',0,'The change is a customization of the data dictionary and can be applied after Migration','Y','N','5c33c342-0211-4534-97bb-8fe4187b4d96',100,TO_DATE('2012-10-24 18:07:03','YYYY-MM-DD HH24:MI:SS'),1,'Customization',100,'Y')
;
-- Oct 24, 2012 6:07:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200740 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)
;
-- Oct 24, 2012 6:07:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200815,'Y',200741,'N','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)',0,TO_DATE('2012-10-24 18:07:04','YYYY-MM-DD HH24:MI:SS'),'D',0,'If the Field is displayed, the result determines if the field is actually displayed','Y','N','87d35c66-a9bc-4ce4-9510-4d639edf144e',100,TO_DATE('2012-10-24 18:07:04','YYYY-MM-DD HH24:MI:SS'),2000,'Display Logic',100,'Y')
;
-- Oct 24, 2012 6:07:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200741 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)
;
-- Oct 24, 2012 6:07:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200097,'Y',200742,'N',0,TO_DATE('2012-10-24 18:07:05','YYYY-MM-DD HH24:MI:SS'),'D',0,'KeyCode for shortcuts','Y','N','105f662c-4c38-4efc-b00f-f092337ba9ee',100,TO_DATE('2012-10-24 18:07:05','YYYY-MM-DD HH24:MI:SS'),10,'KeyCode',100,'Y')
;
-- Oct 24, 2012 6:07:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200742 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)
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200098,'Y',200743,'N',0,TO_DATE('2012-10-24 18:07:06','YYYY-MM-DD HH24:MI:SS'),'D',0,'Keystroke Modifiers for shortcuts','Y','N','dc6e02fe-97c8-40ca-bca7-ca52b0798401',100,TO_DATE('2012-10-24 18:07:06','YYYY-MM-DD HH24:MI:SS'),10,'Keystroke Modifiers',100,'Y')
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200743 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)
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200091,'Y',200744,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',0,TO_DATE('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),'D',0,'Alphanumeric identifier of the entity','Y','N','4ba69d5b-69bc-4162-9aa2-0bcd7064ae4d',100,TO_DATE('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),60,'Name',100,'Y')
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200744 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)
;
-- Oct 24, 2012 6:07:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200084,'Y',200745,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',0,TO_DATE('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),'D',0,'Organizational entity within client','Y','N','4e365917-a396-4928-a6b7-c861055c9f78',100,TO_DATE('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),22,'Organization',100,'Y')
;
-- Oct 24, 2012 6:07:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200745 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)
;
-- Oct 24, 2012 6:07:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200814,'Y',200746,'N','The Process field identifies a unique Process or Report in the system.',0,TO_DATE('2012-10-24 18:07:08','YYYY-MM-DD HH24:MI:SS'),'D',0,'Process or Report','Y','N','42794be2-2e7c-42cc-924d-4da8314a24fb',100,TO_DATE('2012-10-24 18:07:08','YYYY-MM-DD HH24:MI:SS'),10,'Process',100,'Y')
;
-- Oct 24, 2012 6:07:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200746 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)
;
-- Oct 24, 2012 6:07:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200816,'Y',200747,'N','The Sequence indicates the order of records',0,TO_DATE('2012-10-24 18:07:09','YYYY-MM-DD HH24:MI:SS'),'D',0,'Method of ordering records; lowest number comes first','Y','N','0f9a9af3-8f38-4f44-88ff-13efca819a8a',100,TO_DATE('2012-10-24 18:07:09','YYYY-MM-DD HH24:MI:SS'),10,'Sequence',100,'Y')
;
-- Oct 24, 2012 6:07:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200747 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)
;
-- Oct 24, 2012 6:07:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200813,'Y',200748,'N','The Tab indicates a tab that displays within a window.',0,TO_DATE('2012-10-24 18:07:10','YYYY-MM-DD HH24:MI:SS'),'D',0,'Tab within a Window','Y','N','68a5b882-5d9c-4a92-99d1-e13473944b8f',100,TO_DATE('2012-10-24 18:07:10','YYYY-MM-DD HH24:MI:SS'),10,'Tab',100,'Y')
;
-- Oct 24, 2012 6:07:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200748 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)
;
-- Oct 24, 2012 6:07:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,IsDisplayedGrid,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200090,'Y',200749,'N',0,TO_DATE('2012-10-24 18:07:11','YYYY-MM-DD HH24:MI:SS'),'N','D',0,'N','N','ec7e1b7d-2ae5-4214-8465-97d8628b9ac5',100,TO_DATE('2012-10-24 18:07:11','YYYY-MM-DD HH24:MI:SS'),22,'ToolBar Button',100,'Y')
;
-- Oct 24, 2012 6:07:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200749 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)
;
-- Oct 24, 2012 6:07:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200734
;
-- Oct 24, 2012 6:07:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200734
;
-- Oct 24, 2012 6:07:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200735
;
-- Oct 24, 2012 6:07:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200735
;
-- Oct 24, 2012 6:08:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200742
;
-- Oct 24, 2012 6:08:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200742
;
-- Oct 24, 2012 6:08:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200743
;
-- Oct 24, 2012 6:08:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200743
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200737
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200733
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200740
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200737
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200733
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200740
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 6:17:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET WhereClause='AD_ToolBarButton.AD_Tab_ID IS NULL',Updated=TO_DATE('2012-10-24 18:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200002
;
-- Oct 24, 2012 9:04:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:04:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 9:04:16 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:04:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 9:04:27 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:04:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 9:04:40 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:04:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 9:04:51 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:04:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 9:05:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=2, ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 9:05:14 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 9:05:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-24 21:05:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 9:05:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_DATE('2012-10-24 21:05:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 9:06:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=80,Updated=TO_DATE('2012-10-24 21:06:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=115
;
-- Oct 24, 2012 9:06:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=90,Updated=TO_DATE('2012-10-24 21:06:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200028
;
-- Oct 24, 2012 9:34:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='(((AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )) AND (coalesce(AD_ToolbarButton.AD_Tab_ID,0)=@AD_Tab_ID:0@))',Updated=TO_DATE('2012-10-24 21:34:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200011
;
-- Oct 27, 2012 10:19:50 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,IsDisplayedGrid,SeqNoGrid,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,DisplayLogic,Name,UpdatedBy,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200002,'N','N',200815,90,'Y',200753,'N','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)',0,TO_DATE('2012-10-27 10:19:47','YYYY-MM-DD HH24:MI:SS'),'N',90,'D',0,'If the Field is displayed, the result determines if the field is actually displayed','Y','N','5091d500-3614-4ffb-8655-36f64d0b12be',100,TO_DATE('2012-10-27 10:19:47','YYYY-MM-DD HH24:MI:SS'),0,'@IsCustomization@=Y','Display Logic',100,'Y',1,5,3)
;
-- Oct 27, 2012 10:19:50 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200753 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)
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Element SET Help='The OSGi service component name that implements the IAction interface for toolbar action', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', PrintName='Service Component Name',Updated=TO_DATE('2012-10-27 10:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Process_Para SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action', AD_Element_ID=200018 WHERE UPPER(ColumnName)='ACTIONCLASSNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Process_Para SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Element_ID=200018 AND IsCentrallyMaintained='Y'
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200018) AND IsCentrallyMaintained='Y'
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_PrintFormatItem pi SET PrintName='Service Component Name', Name='Service Component Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=200018)
;
SELECT register_migration_script('948_IDEMPIERE-234.sql') FROM dual
;

View File

@ -0,0 +1,961 @@
-- Oct 23, 2012 5:37:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-23 17:37:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200068
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window SET Description='Maintain toolbar button access rule', Name='Role Toolbar Button Access',Updated=TO_TIMESTAMP('2012-10-23 17:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu SET IsActive='Y', Name='Role Toolbar Button Access', Description='Maintain toolbar button access rule',Updated=TO_TIMESTAMP('2012-10-23 17:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200001
;
-- Oct 23, 2012 5:42:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200001
;
-- Oct 23, 2012 5:44:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table SET Description='Toolbar button access rule', Name='Toolbar Button Access',Updated=TO_TIMESTAMP('2012-10-23 17:44:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200004
;
-- Oct 23, 2012 5:44:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=200004
;
-- Oct 23, 2012 5:45:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,CreatedBy,Updated,AD_Org_ID,IsActive,IsAutocomplete,IsAllowLogging,Created,IsUpdateable,AD_Column_UU,IsAlwaysUpdateable,Help,IsAllowCopy,UpdatedBy,DefaultValue,IsEncrypted,ColumnName,Description,Name,AD_Client_ID,AD_Column_ID,SeqNoSelection,IsToolbarButton) VALUES (1,200004,'D','Y','N','N',0,'N',1,'N',20,'N','N',2079,100,TO_TIMESTAMP('2012-10-23 17:45:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N','Y',TO_TIMESTAMP('2012-10-23 17:45:04','YYYY-MM-DD HH24:MI:SS'),'N','28bc855d-3815-43ec-b3f6-d053ce1368a5','N','If selected (excluded), the role cannot access the data specified. If not selected (included), the role can ONLY access the data specified. Exclude items represent a negative list (i.e. you don''t have access to the listed items). Include items represent a positive list (i.e. you only have access to the listed items).
<br>You would usually not mix Exclude and Include. If you have one include rule in your list, you would only have access to that item anyway.','Y',100,'Y','N','IsExclude','Exclude access to the data - if not selected Include access to the data','Exclude',0,200811,0,'N')
;
-- Oct 23, 2012 5:45:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200811 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 23, 2012 5:46:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,Help,CreatedBy,Updated,EntityType,IsDisplayed,IsFieldOnly,IsDisplayedGrid,SeqNoGrid,AD_Field_UU,DisplayLength,Description,Name,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200003,'N','N',200811,80,'Y',200730,'Y',100,0,TO_TIMESTAMP('2012-10-23 17:46:35','YYYY-MM-DD HH24:MI:SS'),0,'If selected (excluded), the role cannot access the data specified. If not selected (included), the role can ONLY access the data specified. Exclude items represent a negative list (i.e. you don''t have access to the listed items). Include items represent a positive list (i.e. you only have access to the listed items).
<br>You would usually not mix Exclude and Include. If you have one include rule in your list, you would only have access to that item anyway.',100,TO_TIMESTAMP('2012-10-23 17:46:35','YYYY-MM-DD HH24:MI:SS'),'D','Y','N','Y',80,'94cefb8d-5e6f-453c-b133-7ab99e7928e4',0,'Exclude access to the data - if not selected Include access to the data','Exclude','Y',2,2,1)
;
-- Oct 23, 2012 5:46:37 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200730 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)
;
-- Oct 23, 2012 5:46:50 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict ADD COLUMN IsExclude CHAR(1) DEFAULT 'Y' CHECK (IsExclude IN ('Y','N')) NOT NULL
;
-- Oct 23, 2012 5:50:47 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET MandatoryLogic='@#AD_Client_ID@>0',Updated=TO_TIMESTAMP('2012-10-23 17:50:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200108
;
-- Oct 23, 2012 6:02:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET Name='Toolbar Button Access',Updated=TO_TIMESTAMP('2012-10-23 18:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200003
;
-- Oct 23, 2012 6:03:14 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2012-10-23 18:03:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200108
;
-- Oct 23, 2012 6:03:20 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y', IsToolbarButton='N',Updated=TO_TIMESTAMP('2012-10-23 18:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200105
;
-- Oct 23, 2012 6:03:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsUpdateable='Y', IsToolbarButton='N',Updated=TO_TIMESTAMP('2012-10-23 18:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200111
;
-- Oct 23, 2012 6:14:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Table SET Name='Toolbar Button',Updated=TO_TIMESTAMP('2012-10-23 18:14:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200003
;
-- Oct 23, 2012 6:14:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Window SET Name='Toolbar Button',Updated=TO_TIMESTAMP('2012-10-23 18:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200000
;
-- Oct 23, 2012 6:14:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Menu SET IsActive='Y', Name='Toolbar Button', Description=NULL,Updated=TO_TIMESTAMP('2012-10-23 18:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200000
;
-- Oct 23, 2012 6:19:16 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='AD_Ref_List.Value IN (''W'',''R'')', Name='AD_ToolBarButton Action - Window/Report',Updated=TO_TIMESTAMP('2012-10-23 18:19:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200002
;
-- Oct 23, 2012 6:19:26 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2012-10-23 18:19:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200105
;
-- Oct 23, 2012 6:19:35 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO t_alter_column values('ad_toolbarbuttonrestrict','"action"','CHAR(1)',null,null)
;
-- Oct 23, 2012 6:19:35 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO t_alter_column values('ad_toolbarbuttonrestrict','"action"',null,'NOT NULL',null)
;
-- Oct 23, 2012 6:24:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (Version,AD_Table_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,CreatedBy,Updated,AD_Org_ID,IsActive,IsAutocomplete,IsAllowLogging,Created,IsUpdateable,AD_Column_UU,IsAlwaysUpdateable,Help,IsAllowCopy,UpdatedBy,DefaultValue,AD_Val_Rule_ID,IsEncrypted,ColumnName,Description,Name,AD_Client_ID,AD_Column_ID,SeqNoSelection,IsToolbarButton) VALUES (1,200003,'D',104,'Y','N','N',0,'N',1,'N',17,'N','N',152,100,TO_TIMESTAMP('2012-10-23 18:24:33','YYYY-MM-DD HH24:MI:SS'),0,'Y','N','Y',TO_TIMESTAMP('2012-10-23 18:24:33','YYYY-MM-DD HH24:MI:SS'),'Y','bd152532-f402-4590-b889-02b79fee52b1','N','The Action field is a drop down list box which indicates the Action to be performed for this Item.','Y',100,'W',200002,'N','Action','Indicates the Action to be performed','Action',0,200812,0,'N')
;
-- Oct 23, 2012 6:24:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200812 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 23, 2012 6:24:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD COLUMN "action" CHAR(1) DEFAULT 'W' NOT NULL
;
-- Oct 23, 2012 6:27:22 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Val_Rule (Code,Updated,UpdatedBy,Created,EntityType,Name,Type,CreatedBy,AD_Val_Rule_UU,AD_Client_ID,IsActive,AD_Org_ID,AD_Val_Rule_ID) VALUES ('(AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )',TO_TIMESTAMP('2012-10-23 18:27:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-10-23 18:27:20','YYYY-MM-DD HH24:MI:SS'),'D','AD_ToolbarButton of Action','S',100,'a6553b61-35ba-4bae-add1-6eeb6851d051',0,'Y',0,200011)
;
-- Oct 23, 2012 6:27:37 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET AD_Val_Rule_ID=200011, IsToolbarButton='N',Updated=TO_TIMESTAMP('2012-10-23 18:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200104
;
-- Oct 23, 2012 6:28:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,Help,CreatedBy,Updated,EntityType,IsDisplayed,IsFieldOnly,IsDisplayedGrid,SeqNoGrid,AD_Field_UU,DisplayLength,Description,Name,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200002,'N','N',200812,120,'Y',200731,'N',100,0,TO_TIMESTAMP('2012-10-23 18:28:43','YYYY-MM-DD HH24:MI:SS'),0,'The Action field is a drop down list box which indicates the Action to be performed for this Item.',100,TO_TIMESTAMP('2012-10-23 18:28:43','YYYY-MM-DD HH24:MI:SS'),'D','Y','N','Y',120,'fc97d18a-d3e0-4285-bc9c-bd9fb4f16a71',0,'Indicates the Action to be performed','Action','Y',1,2,1)
;
-- Oct 23, 2012 6:28:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200731 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)
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200054
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200731
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200056
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200057
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200051
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200052
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200058
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200059
;
-- Oct 23, 2012 6:29:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=200053
;
INSERT INTO t_alter_column values('ad_toolbarbutton','"classname"',null,'NULL',null)
;
UPDATE AD_ToolbarButton SET Classname=NULL WHERE Classname IS NOT NULL
;
-- Oct 24, 2012 4:40:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200059
;
-- Oct 24, 2012 4:40:20 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200060
;
-- Oct 24, 2012 4:40:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200061
;
-- Oct 24, 2012 4:40:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200062
;
-- Oct 24, 2012 4:40:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200063
;
-- Oct 24, 2012 4:40:41 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_ToolBarButton SET "action"='R',Updated=TO_TIMESTAMP('2012-10-24 16:40:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ToolBarButton_ID=200064
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200054
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200056
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200057
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200051
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200058
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:43:25 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=200731
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200058
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200731
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200057
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200051
;
-- Oct 24, 2012 4:44:36 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200052
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200058
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200059
;
-- Oct 24, 2012 4:45:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200053
;
-- Oct 24, 2012 4:49:32 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET DisplayLogic='@Action@=R',Updated=TO_TIMESTAMP('2012-10-24 16:49:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200615
;
-- Oct 24, 2012 4:52:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2012-10-24 16:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200070
;
-- Oct 24, 2012 4:53:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2012-10-24 16:53:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200615
;
-- Oct 24, 2012 5:36:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2012-10-24 17:36:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200087
;
-- Oct 24, 2012 5:37:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',30,'N',125,TO_TIMESTAMP('2012-10-24 17:37:46','YYYY-MM-DD HH24:MI:SS'),'N','Y','0759632a-25f9-48e5-a6e4-13214fa8d57c','Y','N','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y','Y',100,TO_TIMESTAMP('2012-10-24 17:37:46','YYYY-MM-DD HH24:MI:SS'),0,100,0,200813,'N',0)
;
-- Oct 24, 2012 5:37:48 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200813 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:38:55 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',19,'N',117,TO_TIMESTAMP('2012-10-24 17:38:53','YYYY-MM-DD HH24:MI:SS'),'N','Y','208abde6-b52c-4d25-9051-36e139e6214a','Y','N','AD_Process_ID','Process or Report','The Process field identifies a unique Process or Report in the system.','Process','Y','Y',100,TO_TIMESTAMP('2012-10-24 17:38:53','YYYY-MM-DD HH24:MI:SS'),0,100,0,200814,'N',0)
;
-- Oct 24, 2012 5:38:55 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200814 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:41:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',2000,'N',14,'N',283,TO_TIMESTAMP('2012-10-24 17:41:03','YYYY-MM-DD HH24:MI:SS'),'N','Y','f55fe6cb-34f8-4291-a879-44f8f7b9d7cf','Y','N','DisplayLogic','If the Field is displayed, the result determines if the field is actually displayed','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)','Display Logic','Y','Y',100,TO_TIMESTAMP('2012-10-24 17:41:03','YYYY-MM-DD HH24:MI:SS'),0,100,0,200815,'N',0)
;
-- Oct 24, 2012 5:41:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200815 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:50:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,DefaultValue,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200003,'D','N','N','N',0,'N',10,'N',11,'N',566,TO_TIMESTAMP('2012-10-24 17:50:22','YYYY-MM-DD HH24:MI:SS'),'N','Y','093d28e9-b81f-4e86-8e43-fcadcf708af6','@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ToolbarButton WHERE AD_Tab_ID=@AD_Tab_ID@','Y','N','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y','Y',100,TO_TIMESTAMP('2012-10-24 17:50:22','YYYY-MM-DD HH24:MI:SS'),0,100,0,200816,'N',0)
;
-- Oct 24, 2012 5:50:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200816 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:50:57 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD COLUMN AD_Tab_ID NUMERIC(10) DEFAULT NULL
;
-- Oct 24, 2012 5:51:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD COLUMN AD_Process_ID NUMERIC(10) DEFAULT NULL
;
-- Oct 24, 2012 5:51:28 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD COLUMN DisplayLogic VARCHAR(2000) DEFAULT NULL
;
-- Oct 24, 2012 5:51:38 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButton ADD COLUMN SeqNo NUMERIC(10) DEFAULT NULL
;
-- Oct 24, 2012 5:54:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column (IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,Created,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,IsActive,CreatedBy,Updated,AD_Org_ID,UpdatedBy,AD_Client_ID,AD_Column_ID,IsToolbarButton,SeqNoSelection) VALUES ('N','N',1,200004,'D','N','N','N',0,'N',10,'N',19,163,'N',125,TO_TIMESTAMP('2012-10-24 17:54:45','YYYY-MM-DD HH24:MI:SS'),'N','Y','16e082c5-c744-4f85-8a3a-f139690521af','Y','N','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y','Y',100,TO_TIMESTAMP('2012-10-24 17:54:45','YYYY-MM-DD HH24:MI:SS'),0,100,0,200817,'N',0)
;
-- Oct 24, 2012 5:54:46 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200817 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Oct 24, 2012 5:54:53 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
ALTER TABLE AD_ToolBarButtonRestrict ADD COLUMN AD_Tab_ID NUMERIC(10) DEFAULT NULL
;
-- Oct 24, 2012 5:58:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,IsDisplayedGrid,SeqNoGrid,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,DisplayLogic,Name,UpdatedBy,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200003,'N','N',200817,90,'Y',200732,'N','The Tab indicates a tab that displays within a window.',0,TO_TIMESTAMP('2012-10-24 17:58:33','YYYY-MM-DD HH24:MI:SS'),'N',90,'D',0,'Tab within a Window','Y','N','0ba360c9-e34d-45a8-a5ff-0dbaf222f82c',100,TO_TIMESTAMP('2012-10-24 17:58:33','YYYY-MM-DD HH24:MI:SS'),0,'@Action@=W','Tab',100,'Y',4,2,1)
;
-- Oct 24, 2012 5:58:34 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200732 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)
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200070
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200732
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200068
;
-- Oct 24, 2012 5:59:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200730
;
-- Oct 24, 2012 6:01:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='((AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )) AND (AD_ToolbarButton.AD_Tab_ID IS NULL OR AD_ToolbarButton.AD_Tab_ID=@AD_Tab_ID@))',Updated=TO_TIMESTAMP('2012-10-24 18:01:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200011
;
-- Oct 24, 2012 6:03:27 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=90,Updated=TO_TIMESTAMP('2012-10-24 18:03:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=115
;
-- Oct 24, 2012 6:05:49 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Tab (IsSortTab,ImportFields,Processing,AD_Window_ID,SeqNo,AD_Table_ID,HasTree,IsInfoTab,AD_Column_ID,AD_Client_ID,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,IsReadOnly,AD_Org_ID,Created,CreatedBy,Updated,Name,OrderByClause,IsSingleRow,IsTranslationTab,UpdatedBy,IsActive,AD_Tab_ID) VALUES ('N','N','N',102,80,200003,'N','N',200813,0,'Y','N',2,'b67bbfa7-d919-431f-88e0-74bf410c321d','D','N',0,TO_TIMESTAMP('2012-10-24 18:05:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-10-24 18:05:48','YYYY-MM-DD HH24:MI:SS'),'Toolbar Button','SeqNo','N','N',100,'Y',200028)
;
-- Oct 24, 2012 6:05:50 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200028 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- Oct 24, 2012 6:06:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200812,'Y',200733,'N','The Action field is a drop down list box which indicates the Action to be performed for this Item.',0,TO_TIMESTAMP('2012-10-24 18:06:57','YYYY-MM-DD HH24:MI:SS'),'D',0,'Indicates the Action to be performed','Y','N','431eb0bc-d764-4a77-843d-537ea5b0178e',100,TO_TIMESTAMP('2012-10-24 18:06:57','YYYY-MM-DD HH24:MI:SS'),1,'Action',100,'Y')
;
-- Oct 24, 2012 6:06:58 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200733 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)
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200095,'Y',200734,'N',0,TO_TIMESTAMP('2012-10-24 18:06:58','YYYY-MM-DD HH24:MI:SS'),'D',0,'The class name that implements the interface for toolbar actions','Y','N','6420886d-cd75-4159-a1ca-eeae6d3309d7',100,TO_TIMESTAMP('2012-10-24 18:06:58','YYYY-MM-DD HH24:MI:SS'),255,'Action Class Name',100,'Y')
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200734 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)
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200096,'Y',200735,'N','Used to get the corresponding message and Icon name prefix',0,TO_TIMESTAMP('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),'D',0,'Action name on the toolbar','Y','N','944ffe4d-5a59-4352-99ef-2b6d0349932f',100,TO_TIMESTAMP('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),60,'Action Name',100,'Y')
;
-- Oct 24, 2012 6:06:59 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200735 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)
;
-- Oct 24, 2012 6:07:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200089,'Y',200736,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',0,TO_TIMESTAMP('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),'D',0,'The record is active in the system','Y','N','2ed0ef54-e204-4b18-bafa-4f9b8dfb68c6',100,TO_TIMESTAMP('2012-10-24 18:06:59','YYYY-MM-DD HH24:MI:SS'),1,'Active',100,'Y')
;
-- Oct 24, 2012 6:07:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200736 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)
;
-- Oct 24, 2012 6:07:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200204,'Y',200737,'N',0,TO_TIMESTAMP('2012-10-24 18:07:00','YYYY-MM-DD HH24:MI:SS'),'D',0,'Y','N','82384725-b699-4676-9bf9-f41018683484',100,TO_TIMESTAMP('2012-10-24 18:07:00','YYYY-MM-DD HH24:MI:SS'),36,'AD_ToolBarButton_UU',100,'Y')
;
-- Oct 24, 2012 6:07:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200737 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)
;
-- Oct 24, 2012 6:07:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200083,'Y',200738,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',0,TO_TIMESTAMP('2012-10-24 18:07:01','YYYY-MM-DD HH24:MI:SS'),'D',0,'Client/Tenant for this installation.','Y','N','f70ffbf9-81c6-4760-bf65-662157d15d11',100,TO_TIMESTAMP('2012-10-24 18:07:01','YYYY-MM-DD HH24:MI:SS'),22,'Client',100,'Y')
;
-- Oct 24, 2012 6:07:02 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200738 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)
;
-- Oct 24, 2012 6:07:03 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200088,'Y',200739,'N',0,TO_TIMESTAMP('2012-10-24 18:07:02','YYYY-MM-DD HH24:MI:SS'),'D',0,'Y','N','f4d110db-ca5e-475a-9d2c-a2a15df8e228',100,TO_TIMESTAMP('2012-10-24 18:07:02','YYYY-MM-DD HH24:MI:SS'),255,'Component Name',100,'Y')
;
-- Oct 24, 2012 6:07:03 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200739 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)
;
-- Oct 24, 2012 6:07:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200094,'Y',200740,'N','The migration "resets" the system to the current/original setting. If selected you can save the customization and re-apply it. Please note that you need to check, if your customization has no negative side effect in the new release.',0,TO_TIMESTAMP('2012-10-24 18:07:03','YYYY-MM-DD HH24:MI:SS'),'D',0,'The change is a customization of the data dictionary and can be applied after Migration','Y','N','5c33c342-0211-4534-97bb-8fe4187b4d96',100,TO_TIMESTAMP('2012-10-24 18:07:03','YYYY-MM-DD HH24:MI:SS'),1,'Customization',100,'Y')
;
-- Oct 24, 2012 6:07:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200740 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)
;
-- Oct 24, 2012 6:07:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200815,'Y',200741,'N','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)',0,TO_TIMESTAMP('2012-10-24 18:07:04','YYYY-MM-DD HH24:MI:SS'),'D',0,'If the Field is displayed, the result determines if the field is actually displayed','Y','N','87d35c66-a9bc-4ce4-9510-4d639edf144e',100,TO_TIMESTAMP('2012-10-24 18:07:04','YYYY-MM-DD HH24:MI:SS'),2000,'Display Logic',100,'Y')
;
-- Oct 24, 2012 6:07:05 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200741 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)
;
-- Oct 24, 2012 6:07:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200097,'Y',200742,'N',0,TO_TIMESTAMP('2012-10-24 18:07:05','YYYY-MM-DD HH24:MI:SS'),'D',0,'KeyCode for shortcuts','Y','N','105f662c-4c38-4efc-b00f-f092337ba9ee',100,TO_TIMESTAMP('2012-10-24 18:07:05','YYYY-MM-DD HH24:MI:SS'),10,'KeyCode',100,'Y')
;
-- Oct 24, 2012 6:07:06 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200742 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)
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200098,'Y',200743,'N',0,TO_TIMESTAMP('2012-10-24 18:07:06','YYYY-MM-DD HH24:MI:SS'),'D',0,'Keystroke Modifiers for shortcuts','Y','N','dc6e02fe-97c8-40ca-bca7-ca52b0798401',100,TO_TIMESTAMP('2012-10-24 18:07:06','YYYY-MM-DD HH24:MI:SS'),10,'Keystroke Modifiers',100,'Y')
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200743 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)
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200091,'Y',200744,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',0,TO_TIMESTAMP('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),'D',0,'Alphanumeric identifier of the entity','Y','N','4ba69d5b-69bc-4162-9aa2-0bcd7064ae4d',100,TO_TIMESTAMP('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),60,'Name',100,'Y')
;
-- Oct 24, 2012 6:07:07 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200744 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)
;
-- Oct 24, 2012 6:07:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200084,'Y',200745,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',0,TO_TIMESTAMP('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),'D',0,'Organizational entity within client','Y','N','4e365917-a396-4928-a6b7-c861055c9f78',100,TO_TIMESTAMP('2012-10-24 18:07:07','YYYY-MM-DD HH24:MI:SS'),22,'Organization',100,'Y')
;
-- Oct 24, 2012 6:07:08 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200745 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)
;
-- Oct 24, 2012 6:07:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200814,'Y',200746,'N','The Process field identifies a unique Process or Report in the system.',0,TO_TIMESTAMP('2012-10-24 18:07:08','YYYY-MM-DD HH24:MI:SS'),'D',0,'Process or Report','Y','N','42794be2-2e7c-42cc-924d-4da8314a24fb',100,TO_TIMESTAMP('2012-10-24 18:07:08','YYYY-MM-DD HH24:MI:SS'),10,'Process',100,'Y')
;
-- Oct 24, 2012 6:07:09 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200746 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)
;
-- Oct 24, 2012 6:07:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200816,'Y',200747,'N','The Sequence indicates the order of records',0,TO_TIMESTAMP('2012-10-24 18:07:09','YYYY-MM-DD HH24:MI:SS'),'D',0,'Method of ordering records; lowest number comes first','Y','N','0f9a9af3-8f38-4f44-88ff-13efca819a8a',100,TO_TIMESTAMP('2012-10-24 18:07:09','YYYY-MM-DD HH24:MI:SS'),10,'Sequence',100,'Y')
;
-- Oct 24, 2012 6:07:10 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200747 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)
;
-- Oct 24, 2012 6:07:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200813,'Y',200748,'N','The Tab indicates a tab that displays within a window.',0,TO_TIMESTAMP('2012-10-24 18:07:10','YYYY-MM-DD HH24:MI:SS'),'D',0,'Tab within a Window','Y','N','68a5b882-5d9c-4a92-99d1-e13473944b8f',100,TO_TIMESTAMP('2012-10-24 18:07:10','YYYY-MM-DD HH24:MI:SS'),10,'Tab',100,'Y')
;
-- Oct 24, 2012 6:07:11 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200748 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)
;
-- Oct 24, 2012 6:07:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_Org_ID,Created,IsDisplayedGrid,EntityType,AD_Client_ID,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,Name,UpdatedBy,IsActive) VALUES ('N',200028,'N','N',200090,'Y',200749,'N',0,TO_TIMESTAMP('2012-10-24 18:07:11','YYYY-MM-DD HH24:MI:SS'),'N','D',0,'N','N','ec7e1b7d-2ae5-4214-8465-97d8628b9ac5',100,TO_TIMESTAMP('2012-10-24 18:07:11','YYYY-MM-DD HH24:MI:SS'),22,'ToolBar Button',100,'Y')
;
-- Oct 24, 2012 6:07:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200749 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)
;
-- Oct 24, 2012 6:07:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200734
;
-- Oct 24, 2012 6:07:44 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200734
;
-- Oct 24, 2012 6:07:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200735
;
-- Oct 24, 2012 6:07:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200735
;
-- Oct 24, 2012 6:08:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200742
;
-- Oct 24, 2012 6:08:15 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200742
;
-- Oct 24, 2012 6:08:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200743
;
-- Oct 24, 2012 6:08:21 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
DELETE FROM AD_Field WHERE AD_Field_ID=200743
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200737
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200733
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200740
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 6:12:01 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200737
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200733
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200740
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 6:13:43 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 6:17:56 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET WhereClause='AD_ToolBarButton.AD_Tab_ID IS NULL',Updated=TO_TIMESTAMP('2012-10-24 18:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200002
;
-- Oct 24, 2012 9:04:04 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:04:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200738
;
-- Oct 24, 2012 9:04:16 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:04:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200745
;
-- Oct 24, 2012 9:04:27 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:04:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200748
;
-- Oct 24, 2012 9:04:40 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:04:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200744
;
-- Oct 24, 2012 9:04:51 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:04:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200739
;
-- Oct 24, 2012 9:05:00 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET XPosition=2, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200736
;
-- Oct 24, 2012 9:05:14 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200747
;
-- Oct 24, 2012 9:05:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-24 21:05:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200746
;
-- Oct 24, 2012 9:05:23 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_TIMESTAMP('2012-10-24 21:05:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200741
;
-- Oct 24, 2012 9:06:12 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=80,Updated=TO_TIMESTAMP('2012-10-24 21:06:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=115
;
-- Oct 24, 2012 9:06:17 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Tab SET SeqNo=90,Updated=TO_TIMESTAMP('2012-10-24 21:06:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200028
;
-- Oct 24, 2012 9:34:31 PM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Val_Rule SET Code='(((AD_ToolbarButton.Action=''@Action@'') OR (AD_ToolbarButton.Action||''@Action@''=''RW'' )) AND (coalesce(AD_ToolbarButton.AD_Tab_ID,0)=@AD_Tab_ID:0@))',Updated=TO_TIMESTAMP('2012-10-24 21:34:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200011
;
-- Oct 27, 2012 10:19:50 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,AD_Org_ID,Created,IsDisplayedGrid,SeqNoGrid,EntityType,AD_Client_ID,Description,IsDisplayed,IsFieldOnly,AD_Field_UU,CreatedBy,Updated,DisplayLength,DisplayLogic,Name,UpdatedBy,IsActive,XPosition,ColumnSpan,NumLines) VALUES (0,'N',200002,'N','N',200815,90,'Y',200753,'N','format := {expression} [{logic} {expression}]<br>
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
logic := {|}|{&}<br>
context := any global or window context <br>
value := strings or numbers<br>
logic operators := AND or OR with the previous result from left to right <br>
operand := eq{=}, gt{&gt;}, le{&lt;}, not{~^!} <br>
Examples: <br>
@AD_Table_ID@=14 | @Language@!GERGER <br>
@PriceLimit@>10 | @PriceList@>@PriceActual@<br>
@Name@>J<br>
Strings may be in single quotes (optional)',0,TO_TIMESTAMP('2012-10-27 10:19:47','YYYY-MM-DD HH24:MI:SS'),'N',90,'D',0,'If the Field is displayed, the result determines if the field is actually displayed','Y','N','5091d500-3614-4ffb-8655-36f64d0b12be',100,TO_TIMESTAMP('2012-10-27 10:19:47','YYYY-MM-DD HH24:MI:SS'),0,'@IsCustomization@=Y','Display Logic',100,'Y',1,5,3)
;
-- Oct 27, 2012 10:19:50 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200753 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)
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Element SET Help='The OSGi service component name that implements the IAction interface for toolbar action', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', PrintName='Service Component Name',Updated=TO_TIMESTAMP('2012-10-27 10:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:14 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Column SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Element_ID=200018
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Process_Para SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action', AD_Element_ID=200018 WHERE UPPER(ColumnName)='ACTIONCLASSNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Process_Para SET ColumnName='ActionClassName', Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Element_ID=200018 AND IsCentrallyMaintained='Y'
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_Field SET Name='Service Component Name', Description='The service component name that implements the interface for toolbar actions', Help='The OSGi service component name that implements the IAction interface for toolbar action' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200018) AND IsCentrallyMaintained='Y'
;
-- Oct 27, 2012 10:24:15 AM MYT
-- IDEMPIERE-234 Configurable Toolbar
UPDATE AD_PrintFormatItem SET PrintName='Service Component Name', Name='Service Component Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200018)
;
SELECT register_migration_script('948_IDEMPIERE-234.sql') FROM dual
;

View File

@ -12,7 +12,7 @@
<booleanAttribute key="clearwslog" value="false"/> <booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/model.generator"/> <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/model.generator"/>
<booleanAttribute key="default" value="false"/> <booleanAttribute key="default" value="false"/>
<stringAttribute key="deselected_workspace_plugins" value="org.adempiere.base.callout,org.adempiere.base.process,org.adempiere.payment.processor,org.adempiere.pipo,org.adempiere.pipo.handlers,org.adempiere.plugin.utils,org.adempiere.replication,org.adempiere.replication.server,org.adempiere.report.jasper.swing,org.adempiere.report.jasper.webapp,org.adempiere.server,org.adempiere.tomcat.config,org.adempiere.ui,org.adempiere.ui.swing,org.adempiere.ui.zk,org.adempiere.webstore,org.adempiere.webstore.resource,org.adempiere.webstore.servlet"/> <stringAttribute key="deselected_workspace_plugins" value="org.adempiere.base.callout,org.adempiere.base.process,org.adempiere.payment.processor,org.adempiere.pipo,org.adempiere.pipo.handlers,org.adempiere.plugin.utils,org.adempiere.replication,org.adempiere.replication.server,org.adempiere.report.jasper.swing,org.adempiere.report.jasper.webapp,org.adempiere.server,org.adempiere.tomcat.config,org.adempiere.ui,org.adempiere.ui.swing,org.adempiere.ui.zk,org.adempiere.webstore,org.adempiere.webstore.resource,org.adempiere.webstore.servlet,org.idempiere.webservices,org.zkoss.zk.library"/>
<booleanAttribute key="includeOptional" value="true"/> <booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-model.generator"/> <stringAttribute key="location" value="${workspace_loc}/../runtime-model.generator"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
@ -21,7 +21,7 @@
<stringAttribute key="pde.version" value="3.3"/> <stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.adempiere.server.server_product"/> <stringAttribute key="product" value="org.adempiere.server.server_product"/>
<stringAttribute key="selected_target_plugins" value="com.springsource.javax.ejb@default:default,com.springsource.javax.jms@default:default,com.springsource.javax.mail@default:default,com.springsource.javax.management.j2ee@default:default,com.springsource.javax.transaction@default:default,com.springsource.javax.xml.rpc@default:default,com.springsource.javax.xml.soap@default:default,com.springsource.net.sf.cglib@default:default,com.springsource.org.aopalliance@default:default,com.springsource.org.apache.activemq@default:default,com.springsource.org.apache.commons.logging@default:default,com.springsource.org.apache.kahadb@default:default,javax.servlet@default:default,javax.xml@default:default,org.apache.ant@default:default,org.apache.commons.codec@default:default,org.apache.commons.collections@default:default,org.apache.commons.logging@default:default,org.apache.commons.net@default:default,org.apache.poi@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true,org.hamcrest.core@default:default,org.junit@default:default,org.restlet@default:default,org.springframework.aop@default:default,org.springframework.beans@default:default,org.springframework.context@default:default,org.springframework.core@default:default"/> <stringAttribute key="selected_target_plugins" value="com.springsource.javax.ejb@default:default,com.springsource.javax.jms@default:default,com.springsource.javax.mail@default:default,com.springsource.javax.management.j2ee@default:default,com.springsource.javax.transaction@default:default,com.springsource.javax.xml.rpc@default:default,com.springsource.javax.xml.soap@default:default,com.springsource.net.sf.cglib@default:default,com.springsource.org.aopalliance@default:default,com.springsource.org.apache.activemq@default:default,com.springsource.org.apache.commons.logging@default:default,com.springsource.org.apache.kahadb@default:default,javax.servlet@default:default,javax.xml@default:default,org.apache.ant@default:default,org.apache.commons.codec@default:default,org.apache.commons.collections@default:default,org.apache.commons.logging@default:default,org.apache.commons.net@default:default,org.apache.poi@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true,org.hamcrest.core@default:default,org.junit@default:default,org.restlet@default:default,org.springframework.aop@default:default,org.springframework.beans@default:default,org.springframework.context@default:default,org.springframework.core@default:default"/>
<stringAttribute key="selected_workspace_plugins" value="event.test@default:default,org.adempiere.base@default:default,org.adempiere.eclipse.equinox.http.servlet@default:default,org.adempiere.eclipse.equinox.http.servletbridge@default:default,org.adempiere.eclipse.equinox.servletbridge@default:default,org.adempiere.extend@default:false,org.adempiere.install@default:default,org.adempiere.pipo.legacy@default:default,org.adempiere.report.jasper.font.demo@default:false,org.adempiere.report.jasper.library@default:default,org.adempiere.report.jasper@default:default,org.adempiere.ui.swing.pluginlist@default:default,org.apache.ecs@default:default,org.compiere.db.oracle.provider@default:default,org.compiere.db.postgresql.provider@default:default,org.zkoss.zk.library@default:default"/> <stringAttribute key="selected_workspace_plugins" value="org.adempiere.base@default:default,org.adempiere.eclipse.equinox.http.servlet@default:default,org.adempiere.eclipse.equinox.http.servletbridge@default:default,org.adempiere.eclipse.equinox.servletbridge@default:default,org.adempiere.extend@default:false,org.adempiere.install@default:default,org.adempiere.report.jasper.library@default:default,org.adempiere.report.jasper@default:default,org.apache.ecs@default:default,org.compiere.db.oracle.provider@default:default,org.compiere.db.postgresql.provider@default:default"/>
<booleanAttribute key="show_selected_only" value="false"/> <booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/> <stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
<booleanAttribute key="tracing" value="false"/> <booleanAttribute key="tracing" value="false"/>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.adempiere.base"> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.adempiere.base.event.manager">
<implementation class="org.adempiere.base.event.EventManager"/> <implementation class="org.adempiere.base.event.EventManager"/>
<reference bind="bindEventAdmin" cardinality="1..1" interface="org.osgi.service.event.EventAdmin" name="EventAdmin" policy="static" unbind="unbindEventAdmin"/> <reference bind="bindEventAdmin" cardinality="1..1" interface="org.osgi.service.event.EventAdmin" name="EventAdmin" policy="static" unbind="unbindEventAdmin"/>
<service> <service>

View File

@ -18,12 +18,11 @@ package org.compiere.model;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Timestamp; import java.sql.Timestamp;
import org.compiere.model.*;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
/** Generated Interface for AD_ToolBarButton /** Generated Interface for AD_ToolBarButton
* @author Adempiere (generated) * @author Adempiere (generated)
* @version 360LTS.015 * @version Release 3.6.0LTS
*/ */
public interface I_AD_ToolBarButton public interface I_AD_ToolBarButton
{ {
@ -32,7 +31,7 @@ public interface I_AD_ToolBarButton
public static final String Table_Name = "AD_ToolBarButton"; public static final String Table_Name = "AD_ToolBarButton";
/** AD_Table_ID=200003 */ /** AD_Table_ID=200003 */
public static final int Table_ID = MTable.getTable_ID(Table_Name); public static final int Table_ID = 200003;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
@ -42,6 +41,19 @@ public interface I_AD_ToolBarButton
/** Load Meta Data */ /** Load Meta Data */
/** Column name Action */
public static final String COLUMNNAME_Action = "Action";
/** Set Action.
* Indicates the Action to be performed
*/
public void setAction (String Action);
/** Get Action.
* Indicates the Action to be performed
*/
public String getAction();
/** Column name ActionClassName */ /** Column name ActionClassName */
public static final String COLUMNNAME_ActionClassName = "ActionClassName"; public static final String COLUMNNAME_ActionClassName = "ActionClassName";
@ -89,6 +101,36 @@ public interface I_AD_ToolBarButton
*/ */
public int getAD_Org_ID(); public int getAD_Org_ID();
/** Column name AD_Process_ID */
public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID";
/** Set Process.
* Process or Report
*/
public void setAD_Process_ID (int AD_Process_ID);
/** Get Process.
* Process or Report
*/
public int getAD_Process_ID();
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException;
/** Column name AD_Tab_ID */
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
/** Set Tab.
* Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID);
/** Get Tab.
* Tab within a Window
*/
public int getAD_Tab_ID();
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException;
/** Column name AD_ToolBarButton_ID */ /** Column name AD_ToolBarButton_ID */
public static final String COLUMNNAME_AD_ToolBarButton_ID = "AD_ToolBarButton_ID"; public static final String COLUMNNAME_AD_ToolBarButton_ID = "AD_ToolBarButton_ID";
@ -98,18 +140,14 @@ public interface I_AD_ToolBarButton
/** Get ToolBar Button */ /** Get ToolBar Button */
public int getAD_ToolBarButton_ID(); public int getAD_ToolBarButton_ID();
/** Column name Classname */ /** Column name AD_ToolBarButton_UU */
public static final String COLUMNNAME_Classname = "Classname"; public static final String COLUMNNAME_AD_ToolBarButton_UU = "AD_ToolBarButton_UU";
/** Set Classname. /** Set AD_ToolBarButton_UU */
* Java Classname public void setAD_ToolBarButton_UU (String AD_ToolBarButton_UU);
*/
public void setClassname (String Classname);
/** Get Classname. /** Get AD_ToolBarButton_UU */
* Java Classname public String getAD_ToolBarButton_UU();
*/
public String getClassname();
/** Column name ComponentName */ /** Column name ComponentName */
public static final String COLUMNNAME_ComponentName = "ComponentName"; public static final String COLUMNNAME_ComponentName = "ComponentName";
@ -136,6 +174,19 @@ public interface I_AD_ToolBarButton
*/ */
public int getCreatedBy(); public int getCreatedBy();
/** Column name DisplayLogic */
public static final String COLUMNNAME_DisplayLogic = "DisplayLogic";
/** Set Display Logic.
* If the Field is displayed, the result determines if the field is actually displayed
*/
public void setDisplayLogic (String DisplayLogic);
/** Get Display Logic.
* If the Field is displayed, the result determines if the field is actually displayed
*/
public String getDisplayLogic();
/** Column name IsActive */ /** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive"; public static final String COLUMNNAME_IsActive = "IsActive";
@ -201,6 +252,21 @@ public interface I_AD_ToolBarButton
*/ */
public String getName(); public String getName();
/** Column name SeqNo */
public static final String COLUMNNAME_SeqNo = "SeqNo";
/** Set Sequence.
* Method of ordering records;
lowest number comes first
*/
public void setSeqNo (int SeqNo);
/** Get Sequence.
* Method of ordering records;
lowest number comes first
*/
public int getSeqNo();
/** Column name Updated */ /** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated"; public static final String COLUMNNAME_Updated = "Updated";

View File

@ -105,6 +105,21 @@ public interface I_AD_ToolBarButtonRestrict
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException; public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException;
/** Column name AD_Tab_ID */
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
/** Set Tab.
* Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID);
/** Get Tab.
* Tab within a Window
*/
public int getAD_Tab_ID();
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException;
/** Column name AD_ToolBarButton_ID */ /** Column name AD_ToolBarButton_ID */
public static final String COLUMNNAME_AD_ToolBarButton_ID = "AD_ToolBarButton_ID"; public static final String COLUMNNAME_AD_ToolBarButton_ID = "AD_ToolBarButton_ID";
@ -178,6 +193,19 @@ public interface I_AD_ToolBarButtonRestrict
*/ */
public boolean isActive(); public boolean isActive();
/** Column name IsExclude */
public static final String COLUMNNAME_IsExclude = "IsExclude";
/** Set Exclude.
* Exclude access to the data - if not selected Include access to the data
*/
public void setIsExclude (boolean IsExclude);
/** Get Exclude.
* Exclude access to the data - if not selected Include access to the data
*/
public boolean isExclude();
/** Column name Updated */ /** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated"; public static final String COLUMNNAME_Updated = "Updated";

View File

@ -0,0 +1,77 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.compiere.model;
import java.sql.ResultSet;
import java.util.List;
import java.util.Properties;
import org.compiere.util.Env;
/**
* @author hengsin
*
*/
public class MToolBarButton extends X_AD_ToolBarButton {
/**
* generated serial id
*/
private static final long serialVersionUID = -2809601337584187559L;
/**
* @param ctx
* @param AD_ToolBarButton_ID
* @param trxName
*/
public MToolBarButton(Properties ctx, int AD_ToolBarButton_ID,
String trxName) {
super(ctx, AD_ToolBarButton_ID, trxName);
}
/**
* @param ctx
* @param rs
* @param trxName
*/
public MToolBarButton(Properties ctx, ResultSet rs, String trxName) {
super(ctx, rs, trxName);
}
public static MToolBarButton[] getOfTab(int AD_Tab_ID, String trxName) {
MToolBarButton[] buttons = new MToolBarButton[0];
Query query = new Query(Env.getCtx(), MTable.get(Env.getCtx(), Table_ID), "AD_Tab_ID=? AND Action=?", trxName);
List<MToolBarButton> list = query.setParameters(AD_Tab_ID, "W").setOnlyActiveRecords(true)
.setOrderBy("SeqNo").list();
if (list != null && !list.isEmpty()) {
buttons = list.toArray(buttons);
}
return buttons;
}
public static MToolBarButton[] getOfWindow(int AD_Window_ID, String trxName) {
MToolBarButton[] buttons = new MToolBarButton[0];
Query query = new Query(Env.getCtx(), MTable.get(Env.getCtx(), Table_ID), "Action=?" +
" AND IsCustomization='Y' AND ActionClassName IS NOT NULL", trxName);
List<MToolBarButton> list = query.setParameters("W").setOnlyActiveRecords(true).list();
if (list != null && !list.isEmpty()) {
buttons = list.toArray(buttons);
}
return buttons;
}
}

View File

@ -18,6 +18,7 @@ package org.compiere.model;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.util.Properties; import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.DB; import org.compiere.util.DB;
@ -30,6 +31,28 @@ import org.compiere.util.Env;
*/ */
public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
{ {
private static final String GET_OF_WINDOW_SQL = "SELECT AD_ToolBarButton_ID FROM AD_ToolBarButtonRestrict WHERE IsActive = 'Y'"
+ " AND AD_Client_ID IN (0, ?)"
+ " AND (AD_Role_ID IS NULL OR AD_Role_ID = ?)"
+ " AND (AD_Window_ID IS NULL OR (Action='W' AND AD_Window_ID=?))"
+ " AND AD_ToolBarButton_ID IN"
+ " (SELECT AD_ToolBarButton_ID FROM AD_ToolBarButton WHERE AD_Tab_ID IS NULL AND IsActive='Y' AND Action=?)";
private static final String GET_OF_REPORT_SQL = "SELECT AD_ToolBarButton_ID FROM AD_ToolBarButtonRestrict WHERE IsActive = 'Y'"
+ " AND AD_Client_ID IN (0, ?)"
+ " AND (AD_Role_ID IS NULL OR AD_Role_ID = ?)"
+ " AND (AD_Process_ID IS NULL OR (Action='R' AND AD_Process_ID=?))"
+ " AND AD_ToolBarButton_ID IN"
+ " (SELECT AD_ToolBarButton_ID FROM AD_ToolBarButton WHERE AD_Tab_ID IS NULL AND IsActive='Y' AND Action=?)";
private static final String GET_OF_TAB_SQL = "SELECT AD_ToolBarButton_ID FROM AD_ToolBarButtonRestrict WHERE IsActive = 'Y'"
+ " AND AD_Client_ID IN (0, ?)"
+ " AND (AD_Role_ID IS NULL OR AD_Role_ID = ?)"
+ " AND Action='W'"
+ " AND AD_ToolBarButton_ID IN"
+ " (SELECT AD_ToolBarButton_ID FROM AD_ToolBarButton WHERE AD_Tab_ID=?"
+ " AND AD_Process_ID IS NOT NULL AND IsActive='Y' AND Action='W')";
/** /**
* *
*/ */
@ -59,22 +82,52 @@ public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
super(ctx, rs, trxName); super(ctx, rs, trxName);
} // MToolBarButtonRestrict } // MToolBarButtonRestrict
/** Returns a list of restrictions to be applied according to the role, the window of the form ... **/ /**
public static int[] getOf (Properties ctx, int AD_Role_ID, String Action, int Action_ID, String className, String trxName) * Returns a list of restrictions to be applied according to the role, the window of the form ...
{ * @param ctx
// Action : R-Report, W-Window, X-form * @param AD_Role_ID
String sql = "SELECT AD_ToolBarButton_ID FROM AD_ToolBarButtonRestrict WHERE IsActive = 'Y'" * @param AD_Window_ID
+ " AND AD_Client_ID IN (0, ?)" * @param reportViewer
+ " AND (AD_Role_ID IS NULL OR AD_Role_ID = ?)" * @param trxName
+ " AND (Action IS NULL OR Action=? AND (AD_Window_ID IS NULL OR (Action='W' AND AD_Window_ID=?)))" **/
+ " AND AD_ToolBarButton_ID IN (SELECT AD_ToolBarButton_ID FROM AD_ToolBarButton WHERE IsActive='Y' AND Classname=?)"; public static int[] getOfWindow(Properties ctx, int AD_Role_ID, int AD_Window_ID, boolean reportViewer, String trxName)
s_log.info("sql="+sql); {
if (s_log.isLoggable(Level.INFO))
s_log.info("sql="+GET_OF_WINDOW_SQL);
int[] ids = DB.getIDsEx(trxName, sql, Env.getAD_Client_ID(ctx), AD_Role_ID, Action, Action_ID, className); int[] ids = DB.getIDsEx(trxName, GET_OF_WINDOW_SQL, Env.getAD_Client_ID(ctx), AD_Role_ID, AD_Window_ID, reportViewer ? "R" : "W");
return ids;
} // getOfWindow
/**
* Returns a list of restrictions to be applied according to the role, the window of the form ...
* @param ctx
* @param AD_Role_ID
* @param AD_Window_ID
* @param trxName
**/
public static int[] getOfReport(Properties ctx, int AD_Role_ID, int AD_Process_ID, String trxName)
{
if (s_log.isLoggable(Level.INFO))
s_log.info("sql="+GET_OF_REPORT_SQL);
int[] ids = DB.getIDsEx(trxName, GET_OF_REPORT_SQL, Env.getAD_Client_ID(ctx), AD_Role_ID, AD_Process_ID, "R");
return ids; return ids;
} // getOf } // getOf
/** Returns a list of restrictions to be applied according to the role for ad_tab toolbar buttons **/
public static int[] getOfTab(Properties ctx, int AD_Role_ID, int AD_Tab_ID, String trxName)
{
if (s_log.isLoggable(Level.INFO))
s_log.info("sql="+GET_OF_TAB_SQL);
int[] ids = DB.getIDsEx(trxName, GET_OF_TAB_SQL, Env.getAD_Client_ID(ctx), AD_Role_ID, AD_Tab_ID);
return ids;
} // getOfTab
/** /**
* String Representation * String Representation
* @return info * @return info

View File

@ -19,19 +19,18 @@ package org.compiere.model;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.util.Properties; import java.util.Properties;
import org.compiere.model.*;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
/** Generated Model for AD_ToolBarButton /** Generated Model for AD_ToolBarButton
* @author Adempiere (generated) * @author Adempiere (generated)
* @version 360LTS.015 - $Id$ */ * @version Release 3.6.0LTS - $Id$ */
public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Persistent public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Persistent
{ {
/** /**
* *
*/ */
private static final long serialVersionUID = 20120329L; private static final long serialVersionUID = 20121025L;
/** Standard Constructor */ /** Standard Constructor */
public X_AD_ToolBarButton (Properties ctx, int AD_ToolBarButton_ID, String trxName) public X_AD_ToolBarButton (Properties ctx, int AD_ToolBarButton_ID, String trxName)
@ -39,8 +38,9 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
super (ctx, AD_ToolBarButton_ID, trxName); super (ctx, AD_ToolBarButton_ID, trxName);
/** if (AD_ToolBarButton_ID == 0) /** if (AD_ToolBarButton_ID == 0)
{ {
setAction (null);
// W
setAD_ToolBarButton_ID (0); setAD_ToolBarButton_ID (0);
setClassname (null);
setComponentName (null); setComponentName (null);
setIsCustomization (false); setIsCustomization (false);
// N // N
@ -76,6 +76,40 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
return sb.toString(); return sb.toString();
} }
/** Action AD_Reference_ID=104 */
public static final int ACTION_AD_Reference_ID=104;
/** Window = W */
public static final String ACTION_Window = "W";
/** Task = T */
public static final String ACTION_Task = "T";
/** WorkFlow = F */
public static final String ACTION_WorkFlow = "F";
/** Process = P */
public static final String ACTION_Process = "P";
/** Report = R */
public static final String ACTION_Report = "R";
/** Form = X */
public static final String ACTION_Form = "X";
/** Workbench = B */
public static final String ACTION_Workbench = "B";
/** Set Action.
@param Action
Indicates the Action to be performed
*/
public void setAction (String Action)
{
set_Value (COLUMNNAME_Action, Action);
}
/** Get Action.
@return Indicates the Action to be performed
*/
public String getAction ()
{
return (String)get_Value(COLUMNNAME_Action);
}
/** Set Action Class Name. /** Set Action Class Name.
@param ActionClassName @param ActionClassName
The class name that implements the interface for toolbar actions The class name that implements the interface for toolbar actions
@ -110,6 +144,62 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
return (String)get_Value(COLUMNNAME_ActionName); return (String)get_Value(COLUMNNAME_ActionName);
} }
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException
{
return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_Name)
.getPO(getAD_Process_ID(), get_TrxName()); }
/** Set Process.
@param AD_Process_ID
Process or Report
*/
public void setAD_Process_ID (int AD_Process_ID)
{
if (AD_Process_ID < 1)
set_Value (COLUMNNAME_AD_Process_ID, null);
else
set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID));
}
/** Get Process.
@return Process or Report
*/
public int getAD_Process_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException
{
return (org.compiere.model.I_AD_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_Tab.Table_Name)
.getPO(getAD_Tab_ID(), get_TrxName()); }
/** Set Tab.
@param AD_Tab_ID
Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID)
{
if (AD_Tab_ID < 1)
set_Value (COLUMNNAME_AD_Tab_ID, null);
else
set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
}
/** Get Tab.
@return Tab within a Window
*/
public int getAD_Tab_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set ToolBar Button. /** Set ToolBar Button.
@param AD_ToolBarButton_ID ToolBar Button */ @param AD_ToolBarButton_ID ToolBar Button */
public void setAD_ToolBarButton_ID (int AD_ToolBarButton_ID) public void setAD_ToolBarButton_ID (int AD_ToolBarButton_ID)
@ -130,21 +220,18 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
return ii.intValue(); return ii.intValue();
} }
/** Set Classname. /** Set AD_ToolBarButton_UU.
@param Classname @param AD_ToolBarButton_UU AD_ToolBarButton_UU */
Java Classname public void setAD_ToolBarButton_UU (String AD_ToolBarButton_UU)
*/
public void setClassname (String Classname)
{ {
set_Value (COLUMNNAME_Classname, Classname); set_Value (COLUMNNAME_AD_ToolBarButton_UU, AD_ToolBarButton_UU);
} }
/** Get Classname. /** Get AD_ToolBarButton_UU.
@return Java Classname @return AD_ToolBarButton_UU */
*/ public String getAD_ToolBarButton_UU ()
public String getClassname ()
{ {
return (String)get_Value(COLUMNNAME_Classname); return (String)get_Value(COLUMNNAME_AD_ToolBarButton_UU);
} }
/** Set Component Name. /** Set Component Name.
@ -161,6 +248,23 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
return (String)get_Value(COLUMNNAME_ComponentName); return (String)get_Value(COLUMNNAME_ComponentName);
} }
/** Set Display Logic.
@param DisplayLogic
If the Field is displayed, the result determines if the field is actually displayed
*/
public void setDisplayLogic (String DisplayLogic)
{
set_Value (COLUMNNAME_DisplayLogic, DisplayLogic);
}
/** Get Display Logic.
@return If the Field is displayed, the result determines if the field is actually displayed
*/
public String getDisplayLogic ()
{
return (String)get_Value(COLUMNNAME_DisplayLogic);
}
/** Set Customization. /** Set Customization.
@param IsCustomization @param IsCustomization
The change is a customization of the data dictionary and can be applied after Migration The change is a customization of the data dictionary and can be applied after Migration
@ -249,4 +353,24 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
{ {
return new KeyNamePair(get_ID(), getName()); return new KeyNamePair(get_ID(), getName());
} }
/** Set Sequence.
@param SeqNo
Method of ordering records; lowest number comes first
*/
public void setSeqNo (int SeqNo)
{
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
}
/** Get Sequence.
@return Method of ordering records; lowest number comes first
*/
public int getSeqNo ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
if (ii == null)
return 0;
return ii.intValue();
}
} }

View File

@ -29,7 +29,7 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
/** /**
* *
*/ */
private static final long serialVersionUID = 20121012L; private static final long serialVersionUID = 20121025L;
/** Standard Constructor */ /** Standard Constructor */
public X_AD_ToolBarButtonRestrict (Properties ctx, int AD_ToolBarButtonRestrict_ID, String trxName) public X_AD_ToolBarButtonRestrict (Properties ctx, int AD_ToolBarButtonRestrict_ID, String trxName)
@ -37,7 +37,10 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
super (ctx, AD_ToolBarButtonRestrict_ID, trxName); super (ctx, AD_ToolBarButtonRestrict_ID, trxName);
/** if (AD_ToolBarButtonRestrict_ID == 0) /** if (AD_ToolBarButtonRestrict_ID == 0)
{ {
setAction (null);
setAD_ToolBarButtonRestrict_ID (0); setAD_ToolBarButtonRestrict_ID (0);
setIsExclude (true);
// Y
} */ } */
} }
@ -92,7 +95,7 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
public void setAction (String Action) public void setAction (String Action)
{ {
set_ValueNoCheck (COLUMNNAME_Action, Action); set_Value (COLUMNNAME_Action, Action);
} }
/** Get Action. /** Get Action.
@ -143,9 +146,9 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
public void setAD_Role_ID (int AD_Role_ID) public void setAD_Role_ID (int AD_Role_ID)
{ {
if (AD_Role_ID < 0) if (AD_Role_ID < 0)
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); set_Value (COLUMNNAME_AD_Role_ID, null);
else else
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
} }
/** Get Role. /** Get Role.
@ -159,6 +162,34 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
return ii.intValue(); return ii.intValue();
} }
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException
{
return (org.compiere.model.I_AD_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_Tab.Table_Name)
.getPO(getAD_Tab_ID(), get_TrxName()); }
/** Set Tab.
@param AD_Tab_ID
Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID)
{
if (AD_Tab_ID < 1)
set_Value (COLUMNNAME_AD_Tab_ID, null);
else
set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
}
/** Get Tab.
@return Tab within a Window
*/
public int getAD_Tab_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException public org.compiere.model.I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException
{ {
return (org.compiere.model.I_AD_ToolBarButton)MTable.get(getCtx(), org.compiere.model.I_AD_ToolBarButton.Table_Name) return (org.compiere.model.I_AD_ToolBarButton)MTable.get(getCtx(), org.compiere.model.I_AD_ToolBarButton.Table_Name)
@ -230,9 +261,9 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
public void setAD_Window_ID (int AD_Window_ID) public void setAD_Window_ID (int AD_Window_ID)
{ {
if (AD_Window_ID < 1) if (AD_Window_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null); set_Value (COLUMNNAME_AD_Window_ID, null);
else else
set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
} }
/** Get Window. /** Get Window.
@ -245,4 +276,28 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
return 0; return 0;
return ii.intValue(); return ii.intValue();
} }
/** Set Exclude.
@param IsExclude
Exclude access to the data - if not selected Include access to the data
*/
public void setIsExclude (boolean IsExclude)
{
set_ValueNoCheck (COLUMNNAME_IsExclude, Boolean.valueOf(IsExclude));
}
/** Get Exclude.
@return Exclude access to the data - if not selected Include access to the data
*/
public boolean isExclude ()
{
Object oo = get_Value(COLUMNNAME_IsExclude);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
} }

View File

@ -257,8 +257,9 @@ public final class Msg
String retStr = get().lookup (AD_Language, AD_Message); String retStr = get().lookup (AD_Language, AD_Message);
// //
if (retStr == null || retStr.length() == 0) if (retStr == null || retStr.length() == 0)
{ {
s_log.warning("NOT found: " + AD_Message); if (s_log.isLoggable(Level.INFO))
s_log.info("NOT found: " + AD_Message);
return AD_Message; return AD_Message;
} }

View File

@ -25,10 +25,12 @@ public class AdempiereActivator implements BundleActivator {
@Override @Override
public void start(BundleContext context) throws Exception { public void start(BundleContext context) throws Exception {
this.context = context; this.context = context;
logger.info(getName() + " " + getVersion() + " starting..."); if (logger.isLoggable(Level.INFO))
logger.info(getName() + " " + getVersion() + " starting...");
installPackage(); installPackage();
start(); start();
logger.info(getName() + " " + getVersion() + " ready."); if (logger.isLoggable(Level.INFO))
logger.info(getName() + " " + getVersion() + " ready.");
} }
public String getName() { public String getName() {
@ -45,20 +47,28 @@ public class AdempiereActivator implements BundleActivator {
private void installPackage() { private void installPackage() {
String trxName = Trx.createTrxName(); String trxName = Trx.createTrxName();
String where = "Name=? AND PK_Version=?"; try {
Query q = new Query(Env.getCtx(), X_AD_Package_Imp.Table_Name, String where = "Name=? AND PK_Version=?";
where.toString(), trxName); Query q = new Query(Env.getCtx(), X_AD_Package_Imp.Table_Name,
q.setParameters(new Object[] { getName(), getVersion() }); where.toString(), trxName);
X_AD_Package_Imp pkg = q.first(); q.setParameters(new Object[] { getName(), getVersion() });
if (pkg == null) { X_AD_Package_Imp pkg = q.first();
packIn(trxName); if (pkg == null) {
install(); packIn(trxName);
logger.info(getName() + " " + getVersion() + " installed."); install();
} else { if (logger.isLoggable(Level.INFO))
logger.info(getName() + " " + getVersion() + " was installed: " logger.info(getName() + " " + getVersion() + " installed.");
+ pkg.getCreated()); } else {
if (logger.isLoggable(Level.INFO))
logger.info(getName() + " " + getVersion() + " was installed: "
+ pkg.getCreated());
}
Trx.get(trxName, false).commit();
} finally {
if (Trx.get(trxName, false) != null) {
Trx.get(trxName, false).close();
}
} }
Trx.get(trxName, false).commit();
} }
protected void packIn(String trxName) { protected void packIn(String trxName) {
@ -78,7 +88,7 @@ public class AdempiereActivator implements BundleActivator {
// call 2pack // call 2pack
service.merge(context, zipfile); service.merge(context, zipfile);
} catch (Exception e) { } catch (Exception e) {
logger.log(Level.WARNING, "Error on Dictionary service", e); logger.log(Level.SEVERE, "Error on Dictionary service", e);
} }
} }
} }

View File

@ -155,8 +155,6 @@ public final class APanel extends CPanel
private boolean isNested = false; private boolean isNested = false;
private boolean ToolBarMenuRestictionLoaded = false; private boolean ToolBarMenuRestictionLoaded = false;
private static final String WINDOW = "org.idempiere.ui.window";
/** /**
* Constructs a new instance. * Constructs a new instance.
@ -2926,7 +2924,7 @@ public final class APanel extends CPanel
{ {
int ToolBarButton_ID = 0; int ToolBarButton_ID = 0;
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", m_window.getAD_Window_ID(), WINDOW, null); int[] restrictionList = MToolBarButtonRestrict.getOfWindow(m_ctx, MRole.getDefault().getAD_Role_ID(), m_window.getAD_Window_ID(), false, null);
log.info("restrictionList="+restrictionList.toString()); log.info("restrictionList="+restrictionList.toString());
for (int i = 0; i < restrictionList.length; i++) for (int i = 0; i < restrictionList.length; i++)

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.adempiere.ui.zk.example</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6

View File

@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<idempiere Name="ExportAction" Version="1.0" idempiereVersion="" DataBaseVersion="" Description="" Author="" AuthorEmail="" CreatedDate="2012-10-27 01:01:27.282" UpdatedDate="2012-10-27 01:01:27.282" PackOutVersion="100" Client="0-SYSTEM-System">
<AD_ToolBarButton type="table">
<AD_Client_ID>0</AD_Client_ID>
<AD_Org_ID>0</AD_Org_ID>
<Action>W</Action>
<AD_Tab_ID reference="id"/>
<SeqNo/>
<AD_Process_ID reference="id"/>
<DisplayLogic/>
<IsActive>true</IsActive>
<IsCustomization>true</IsCustomization>
<Name>Export Action</Name>
<KeyStroke_KeyCode>0</KeyStroke_KeyCode>
<KeyStroke_Modifiers>0</KeyStroke_Modifiers>
<AD_ToolBarButton_UU>09c20701-b692-44a1-9480-72a1cf8a0bf3</AD_ToolBarButton_UU>
<ComponentName>Export</ComponentName>
<ActionName/>
<ActionClassName>org.adempiere.ui.zk.example.action.export</ActionClassName>
</AD_ToolBarButton>
<AD_Message type="table">
<AD_Client_ID>0</AD_Client_ID>
<AD_Org_ID>0</AD_Org_ID>
<MsgType>I</MsgType>
<MsgText>Export</MsgText>
<MsgTip/>
<EntityType>U</EntityType>
<AD_Message_UU>b9d8b3d7-34d7-4f18-aed9-c19f9ed8f28a</AD_Message_UU>
<Value>org.adempiere.ui.zk.example.action.export.tooltip</Value>
<IsActive>true</IsActive>
</AD_Message>
</idempiere>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="idempiereDocument.css"?>
<idempiereDocument>
<header>ExportAction Package Description</header>
<H1>Package Name:</H1>
<packagename>ExportAction</packagename>
<H1>Author:</H1>
<Name:/>
<H1>Email Address:</H1>
<Email/>
<H1>Created:</H1>
<Date>2012-10-27 01:01:27.282</Date>
<H1>Updated:</H1>
<Date>2012-10-27 01:01:27.282</Date>
<H1>Description:</H1>
<description/>
<H1>Instructions:</H1>
<instructions/>
<H1>Files in Package:</H1>
<file>File: PackOut.xml</file>
<filedirectory>Directory: \dict\</filedirectory>
<filenotes>Notes: Contains all application/object settings for package</filenotes>
<H1>Client:</H1>
<Client>0-SYSTEM-System</Client>
</idempiereDocument>

Binary file not shown.

View File

@ -0,0 +1,27 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Example
Bundle-SymbolicName: org.adempiere.ui.zk.example
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.adempiere.ui.zk.example.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.adempiere.base,
org.adempiere.exceptions,
org.adempiere.plugin.utils,
org.adempiere.webui.action,
org.adempiere.webui.adwindow,
org.adempiere.webui.apps,
org.adempiere.webui.component,
org.adempiere.webui.window,
org.compiere.model,
org.compiere.util,
org.osgi.framework;version="1.3.0",
org.zkoss.util.media,
org.zkoss.zk.ui,
org.zkoss.zk.ui.event,
org.zkoss.zul,
org.zkoss.zul.event,
org.zkoss.zul.impl
Service-Component: OSGI-INF/export.xml
Export-Package: action.images

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.adempiere.ui.zk.example.action.export">
<implementation class="org.adempiere.ui.zk.example.action.ExportAction"/>
<service>
<provide interface="org.adempiere.webui.action.IAction"/>
</service>
</scr:component>

View File

@ -0,0 +1,5 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/export.xml
source.. = src/

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,42 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.ui.zk.example;
import org.adempiere.plugin.utils.AdempiereActivator;
import org.osgi.framework.BundleContext;
/**
*
* @author hengsin
*
*/
public class Activator extends AdempiereActivator {
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext bundleContext) throws Exception {
super.start(bundleContext);
}
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext bundleContext) throws Exception {
super.stop(bundleContext);
}
}

View File

@ -1,6 +1,6 @@
/****************************************************************************** /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2010 Heng Sin Low * * Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published * * under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope * * by the Free Software Foundation. This program is distributed in the hope *
@ -11,7 +11,7 @@
* with this program; if not, write to the Free Software Foundation, Inc., * * with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/ *****************************************************************************/
package org.adempiere.webui.panel.action; package org.adempiere.ui.zk.example.action;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
@ -24,6 +24,8 @@ import java.util.Set;
import org.adempiere.base.IGridTabExporter; import org.adempiere.base.IGridTabExporter;
import org.adempiere.base.Service; import org.adempiere.base.Service;
import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.AdempiereException;
import org.adempiere.webui.action.IAction;
import org.adempiere.webui.adwindow.ADWindow;
import org.adempiere.webui.adwindow.AbstractADWindowContent; import org.adempiere.webui.adwindow.AbstractADWindowContent;
import org.adempiere.webui.adwindow.IADTabbox; import org.adempiere.webui.adwindow.IADTabbox;
import org.adempiere.webui.adwindow.IADTabpanel; import org.adempiere.webui.adwindow.IADTabpanel;
@ -36,6 +38,7 @@ import org.adempiere.webui.component.Listbox;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.window.FDialog; import org.adempiere.webui.window.FDialog;
import org.compiere.model.GridTab; import org.compiere.model.GridTab;
import org.compiere.model.MRole;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.zkoss.util.media.AMedia; import org.zkoss.util.media.AMedia;
@ -47,12 +50,11 @@ import org.zkoss.zul.Hbox;
import org.zkoss.zul.Vbox; import org.zkoss.zul.Vbox;
/** /**
*
* @author hengsin * @author hengsin
* *
*/ */
public class ExportAction implements EventListener<Event> public class ExportAction implements IAction, EventListener<Event> {
{
private AbstractADWindowContent panel; private AbstractADWindowContent panel;
private Map<String, IGridTabExporter> exporterMap = null; private Map<String, IGridTabExporter> exporterMap = null;
@ -62,20 +64,29 @@ public class ExportAction implements EventListener<Event>
private ConfirmPanel confirmPanel = new ConfirmPanel(true); private ConfirmPanel confirmPanel = new ConfirmPanel(true);
private Listbox cboType = new Listbox(); private Listbox cboType = new Listbox();
private Checkbox chkCurrentRow = new Checkbox(); private Checkbox chkCurrentRow = new Checkbox();
/** /**
* @param panel *
*/ */
public ExportAction(AbstractADWindowContent panel) public ExportAction() {
{
this.panel = panel;
} }
/** /* (non-Javadoc)
* execute export action * @see org.adempiere.webui.action.IAction#execute(java.lang.Object)
*/ */
public void export() @Override
{ public void execute(Object target) {
ADWindow adwindow = (ADWindow) target;
panel = adwindow.getADWindowContent();
if (!MRole.getDefault().isCanExport()) {
FDialog.error(panel.getWindowNo(), "AccessTableNoView");
return;
}
doExport();
}
private void doExport() {
exporterMap = new HashMap<String, IGridTabExporter>(); exporterMap = new HashMap<String, IGridTabExporter>();
extensionMap = new HashMap<String, String>(); extensionMap = new HashMap<String, String>();
List<IGridTabExporter> exporterList = Service.list(IGridTabExporter.class); List<IGridTabExporter> exporterList = Service.list(IGridTabExporter.class);

View File

@ -12,9 +12,12 @@ Import-Package: javax.servlet,
org.apache.ecs.xhtml, org.apache.ecs.xhtml,
org.compiere.css, org.compiere.css,
org.osgi.framework;version="1.5.0", org.osgi.framework;version="1.5.0",
org.osgi.service.component;version="1.1.0",
org.osgi.util.tracker;version="1.5.0",
org.slf4j;version="1.6.1", org.slf4j;version="1.6.1",
org.slf4j.helpers;version="1.6.1", org.slf4j.helpers;version="1.6.1",
org.slf4j.spi;version="1.6.1" org.slf4j.spi;version="1.6.1"
DynamicImport-Package: action.images
Bundle-ClassPath: WEB-INF/classes/, Bundle-ClassPath: WEB-INF/classes/,
WEB-INF/lib/atmosphere-runtime-0.9.jar, WEB-INF/lib/atmosphere-runtime-0.9.jar,
WEB-INF/lib/atmosphere-compat-jbossweb-0.9.jar, WEB-INF/lib/atmosphere-compat-jbossweb-0.9.jar,
@ -24,6 +27,8 @@ Bundle-ClassPath: WEB-INF/classes/,
Export-Package: metainfo.zk, Export-Package: metainfo.zk,
org.adempiere.webui, org.adempiere.webui,
org.adempiere.webui.acct, org.adempiere.webui.acct,
org.adempiere.webui.action,
org.adempiere.webui.adwindow,
org.adempiere.webui.apps, org.adempiere.webui.apps,
org.adempiere.webui.apps.form, org.adempiere.webui.apps.form,
org.adempiere.webui.apps.graph, org.adempiere.webui.apps.graph,
@ -44,8 +49,7 @@ Export-Package: metainfo.zk,
org.adempiere.webui.session, org.adempiere.webui.session,
org.adempiere.webui.theme, org.adempiere.webui.theme,
org.adempiere.webui.util, org.adempiere.webui.util,
org.adempiere.webui.window, org.adempiere.webui.window
metainfo.zk
Require-Bundle: org.adempiere.report.jasper;bundle-version="1.0.0", Require-Bundle: org.adempiere.report.jasper;bundle-version="1.0.0",
org.adempiere.base;bundle-version="1.0.0", org.adempiere.base;bundle-version="1.0.0",
org.adempiere.report.jasper.library;bundle-version="1.0.0", org.adempiere.report.jasper.library;bundle-version="1.0.0",

View File

@ -0,0 +1,91 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.webui.action;
import java.io.IOException;
import java.io.InputStream;
import org.adempiere.webui.WebUIActivator;
import org.compiere.util.CCache;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Filter;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.component.ComponentConstants;
import org.osgi.util.tracker.ServiceTracker;
import org.zkoss.image.AImage;
/**
*
* @author hengsin
*
*/
public class Actions {
private static final String ACTION_IMAGES_PATH = "/action/images/";
private static CCache<String, ServiceTracker<IAction, IAction>> trackerCache = new CCache<String, ServiceTracker<IAction,IAction>>("ActionsServiceTracker", 5);
private static CCache<String, AImage> imageCache = new CCache<String, AImage>("ActionsImages",5);
private static final String COMPONENT_FILTER = "(&(objectclass=org.adempiere.webui.action.IAction)("
+ ComponentConstants.COMPONENT_NAME + "=?))";
public static ServiceTracker<IAction, IAction> getActionTracker(String actionId) {
ServiceTracker<IAction, IAction> actionTracker = null;
synchronized (trackerCache) {
actionTracker = trackerCache.get(actionId);
}
if (actionTracker != null)
return actionTracker;
BundleContext context = WebUIActivator.getBundleContext();
Filter filter = null;
try {
String sFilter = COMPONENT_FILTER.replaceFirst("[?]", actionId);
filter = context.createFilter(sFilter);
} catch (InvalidSyntaxException e) {
e.printStackTrace();
}
actionTracker = new ServiceTracker<IAction, IAction>(context, filter, null);
if (actionTracker != null) {
actionTracker.open();
synchronized (trackerCache) {
trackerCache.put(actionId, actionTracker);
}
}
return actionTracker;
}
public static AImage getActionImage(String actionId) {
AImage aImage = null;
synchronized (imageCache) {
aImage = imageCache.get(actionId);
}
if (aImage != null)
return aImage;
String path = ACTION_IMAGES_PATH + actionId + "24.png";
InputStream inputStream = Actions.class.getClassLoader().getResourceAsStream(path);
if (inputStream != null) {
try {
aImage = new AImage(actionId, inputStream);
} catch (IOException e) {
}
}
if (aImage != null) {
synchronized (imageCache) {
imageCache.put(actionId, aImage);
}
}
return aImage;
}
}

View File

@ -0,0 +1,22 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.webui.action;
/**
* @author hengsin
*
*/
public interface IAction {
public void execute(Object target);
}

View File

@ -140,6 +140,7 @@ public class ADSortTab extends Panel implements IADTabpanel
private boolean active = false; private boolean active = false;
private boolean isChanged; private boolean isChanged;
private boolean detailPaneMode; private boolean detailPaneMode;
private int tabNo;
/** /**
* Dynamic Init * Dynamic Init
@ -948,5 +949,15 @@ public class ADSortTab extends Panel implements IADTabpanel
return true; return true;
} }
} }
@Override
public void setTabNo(int tabNo) {
this.tabNo = tabNo;
}
@Override
public int getTabNo() {
return tabNo;
}
} //ADSortTab } //ADSortTab

View File

@ -55,9 +55,12 @@ import org.compiere.model.GridTab;
import org.compiere.model.GridWindow; import org.compiere.model.GridWindow;
import org.compiere.model.MLookup; import org.compiere.model.MLookup;
import org.compiere.model.MSysConfig; import org.compiere.model.MSysConfig;
import org.compiere.model.MToolBarButton;
import org.compiere.model.MToolBarButtonRestrict;
import org.compiere.model.MTree; import org.compiere.model.MTree;
import org.compiere.model.MTreeNode; import org.compiere.model.MTreeNode;
import org.compiere.model.X_AD_FieldGroup; import org.compiere.model.X_AD_FieldGroup;
import org.compiere.model.X_AD_ToolBarButton;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.DisplayType; import org.compiere.util.DisplayType;
import org.compiere.util.Env; import org.compiere.util.Env;
@ -71,6 +74,7 @@ import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.util.Clients; import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Button;
import org.zkoss.zul.Center; import org.zkoss.zul.Center;
import org.zkoss.zul.DefaultTreeNode; import org.zkoss.zul.DefaultTreeNode;
import org.zkoss.zul.Div; import org.zkoss.zul.Div;
@ -134,6 +138,10 @@ DataStatusListener, IADTabpanel
private ArrayList<WEditor> editors = new ArrayList<WEditor>(); private ArrayList<WEditor> editors = new ArrayList<WEditor>();
private ArrayList<Component> editorComps = new ArrayList<Component>(); private ArrayList<Component> editorComps = new ArrayList<Component>();
private ArrayList<WButtonEditor> toolbarButtonEditors = new ArrayList<WButtonEditor>();
private ArrayList<ToolbarProcessButton> toolbarProcessButtons = new ArrayList<ToolbarProcessButton>();
private boolean uiCreated = false; private boolean uiCreated = false;
@ -161,6 +169,8 @@ DataStatusListener, IADTabpanel
private boolean detailPaneMode; private boolean detailPaneMode;
private int tabNo;
public static final String ON_TOGGLE_EVENT = "onToggle"; public static final String ON_TOGGLE_EVENT = "onToggle";
public ADTabpanel() public ADTabpanel()
@ -407,7 +417,7 @@ DataStatusListener, IADTabpanel
editor.setADTabpanel(this); editor.setADTabpanel(this);
field.addPropertyChangeListener(editor); field.addPropertyChangeListener(editor);
editors.add(editor); editors.add(editor);
editorComps.add(editor.getComponent()); toolbarButtonEditors.add(editor);
continue; continue;
} }
@ -563,6 +573,8 @@ DataStatusListener, IADTabpanel
if (rowList != null) if (rowList != null)
rowList.add(row); rowList.add(row);
loadToolbarButtons();
//create tree //create tree
if (gridTab.isTreeTab() && treePanel != null) { if (gridTab.isTreeTab() && treePanel != null) {
int AD_Tree_ID = MTree.getDefaultAD_Tree_ID ( int AD_Tree_ID = MTree.getDefaultAD_Tree_ID (
@ -574,6 +586,30 @@ DataStatusListener, IADTabpanel
switchRowPresentation(); switchRowPresentation();
} }
private void loadToolbarButtons() {
//get extra toolbar process buttons
MToolBarButton[] mToolbarButtons = MToolBarButton.getOfTab(gridTab.getAD_Tab_ID(), null);
for(MToolBarButton mToolbarButton : mToolbarButtons) {
ToolbarProcessButton toolbarProcessButton = new ToolbarProcessButton(mToolbarButton, this, windowPanel, windowNo);
toolbarProcessButtons.add(toolbarProcessButton);
}
if (toolbarProcessButtons.size() > 0) {
int ids[] = MToolBarButtonRestrict.getOfTab(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx()), gridTab.getAD_Tab_ID(), null);
if (ids != null && ids.length > 0) {
for(int id : ids) {
X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(Env.getCtx(), id, null);
for(ToolbarProcessButton btn : toolbarProcessButtons) {
if (tbt.getComponentName().equals(btn.getColumnName())) {
toolbarProcessButtons.remove(btn);
break;
}
}
}
}
}
}
private Component createSpacer() { private Component createSpacer() {
return new Space(); return new Space();
} }
@ -716,6 +752,10 @@ DataStatusListener, IADTabpanel
if (listPanel.isVisible()) { if (listPanel.isVisible()) {
listPanel.dynamicDisplay(col); listPanel.dynamicDisplay(col);
} }
for (ToolbarProcessButton btn : toolbarProcessButtons) {
btn.dynamicDisplay();
}
Events.sendEvent(this, new Event(ON_DYNAMIC_DISPLAY_EVENT, this)); Events.sendEvent(this, new Event(ON_DYNAMIC_DISPLAY_EVENT, this));
logger.config(gridTab.toString() + " - fini - " + (col<=0 ? "complete" : "seletive")); logger.config(gridTab.toString() + " - fini - " + (col<=0 ? "complete" : "seletive"));
@ -1203,18 +1243,18 @@ DataStatusListener, IADTabpanel
* Get all visible button editors * Get all visible button editors
* @return List<WButtonEditor> * @return List<WButtonEditor>
*/ */
public List<WButtonEditor> getToolbarButtons() { public List<Button> getToolbarButtons() {
List<WButtonEditor> buttonList = new ArrayList<WButtonEditor>(); List<Button> buttonList = new ArrayList<Button>();
if (isGridView()) { for(WButtonEditor editor : toolbarButtonEditors) {
buttonList = listPanel.getToolbarButtons(); if (editor.getComponent() != null
} else { && editor.getComponent().isVisible()) {
for(WEditor editor : editors) { buttonList.add(editor.getComponent());
if (editor instanceof WButtonEditor && editor.getComponent() != null }
&& editor.getComponent().isVisible() }
&& editor.getGridField() != null
&& editor.getGridField().isToolbarButton()) { for(ToolbarProcessButton processButton : toolbarProcessButtons) {
buttonList.add((WButtonEditor) editor); if (processButton.getButton().isVisible()) {
} buttonList.add(processButton.getButton());
} }
} }
return buttonList; return buttonList;
@ -1234,5 +1274,15 @@ DataStatusListener, IADTabpanel
public boolean isDetailPaneMode() { public boolean isDetailPaneMode() {
return this.detailPaneMode; return this.detailPaneMode;
} }
@Override
public void setTabNo(int tabNo) {
this.tabNo = tabNo;
}
@Override
public int getTabNo() {
return tabNo;
}
} }

View File

@ -97,4 +97,8 @@ public class ADWindow extends AbstractUIPart
public ADWindowContent getADWindowContent() { public ADWindowContent getADWindowContent() {
return windowContent; return windowContent;
} }
public static ADWindow get(int windowNo) {
return (ADWindow) SessionManager.getAppDesktop().findWindow(windowNo);
}
} }

View File

@ -22,22 +22,28 @@ import java.lang.reflect.Method;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import org.adempiere.webui.AdempiereIdGenerator; import org.adempiere.webui.AdempiereIdGenerator;
import org.adempiere.webui.LayoutUtils; import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.action.Actions;
import org.adempiere.webui.action.IAction;
import org.adempiere.webui.component.FToolbar; import org.adempiere.webui.component.FToolbar;
import org.adempiere.webui.component.ToolBarButton; import org.adempiere.webui.component.ToolBarButton;
import org.adempiere.webui.event.ToolbarListener; import org.adempiere.webui.event.ToolbarListener;
import org.adempiere.webui.session.SessionManager; import org.adempiere.webui.session.SessionManager;
import org.compiere.model.MRole; import org.compiere.model.MRole;
import org.compiere.model.MToolBarButton;
import org.compiere.model.MToolBarButtonRestrict; import org.compiere.model.MToolBarButtonRestrict;
import org.compiere.model.X_AD_ToolBarButton; import org.compiere.model.X_AD_ToolBarButton;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.osgi.util.tracker.ServiceTracker;
import org.zkoss.image.AImage;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
@ -85,8 +91,6 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
private ToolBarButton btnCustomize; private ToolBarButton btnCustomize;
private ToolBarButton btnExport;
private ToolBarButton btnProcess; private ToolBarButton btnProcess;
private HashMap<String, ToolBarButton> buttons = new HashMap<String, ToolBarButton>(); private HashMap<String, ToolBarButton> buttons = new HashMap<String, ToolBarButton>();
@ -100,6 +104,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
private Map<Integer, ToolBarButton> keyMap = new HashMap<Integer, ToolBarButton>(); private Map<Integer, ToolBarButton> keyMap = new HashMap<Integer, ToolBarButton>();
private Map<Integer, ToolBarButton> altKeyMap = new HashMap<Integer, ToolBarButton>(); private Map<Integer, ToolBarButton> altKeyMap = new HashMap<Integer, ToolBarButton>();
private Map<Integer, ToolBarButton> ctrlKeyMap = new HashMap<Integer, ToolBarButton>(); private Map<Integer, ToolBarButton> ctrlKeyMap = new HashMap<Integer, ToolBarButton>();
private List<ToolbarCustomButton> toolbarCustomButtons = new ArrayList<ToolbarCustomButton>();
// Elaine 2008/12/04 // Elaine 2008/12/04
/** Show Personal Lock */ /** Show Personal Lock */
@ -115,8 +121,6 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
/** Last Modifier of Action Event */ /** Last Modifier of Action Event */
// public int lastModifiers; // public int lastModifiers;
// //
private static final String WINDOW = "org.idempiere.ui.window";
public ADWindowToolbar() public ADWindowToolbar()
{ {
@ -182,11 +186,6 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
btnArchive.setDisabled(false); // Elaine 2008/07/28 btnArchive.setDisabled(false); // Elaine 2008/07/28
btnLock.setDisabled(!isPersonalLock); // Elaine 2008/12/04 btnLock.setDisabled(!isPersonalLock); // Elaine 2008/12/04
if (MRole.getDefault().isCanExport())
{
btnExport = createButton("Export", "Export", "Export");
}
configureKeyMap(); configureKeyMap();
setWidth("100%"); setWidth("100%");
@ -201,7 +200,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
btn.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, "unq" + btn.getName() + "_" + windowNo); btn.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, "unq" + btn.getName() + "_" + windowNo);
else else
btn.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, btn.getName()); btn.setAttribute(AdempiereIdGenerator.ZK_COMPONENT_PREFIX_ATTRIBUTE, btn.getName());
btn.setImage("/images/"+image + "24.png"); if (image != null)
btn.setImage("/images/"+image + "24.png");
btn.setTooltiptext(Msg.getMsg(Env.getCtx(),tooltip)); btn.setTooltiptext(Msg.getMsg(Env.getCtx(),tooltip));
btn.setSclass("toolbar-button"); btn.setSclass("toolbar-button");
@ -539,25 +539,19 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
this.windowNo = windowNo; this.windowNo = windowNo;
} }
/**
* Enable/disable export button
* @param b
*/
public void enableExport(boolean b) {
if (btnExport != null)
btnExport.setDisabled(!b);
}
private boolean ToolBarMenuRestictionLoaded = false; private boolean ToolBarMenuRestictionLoaded = false;
public void updateToolBarAndMenuWithRestriction(int AD_Window_ID) { public void updateToolbarAccess(int AD_Window_ID) {
loadCustomButton(AD_Window_ID);
if (ToolBarMenuRestictionLoaded) if (ToolBarMenuRestictionLoaded)
return; return;
Properties m_ctx = Env.getCtx(); Properties m_ctx = Env.getCtx();
int ToolBarButton_ID = 0; int ToolBarButton_ID = 0;
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", AD_Window_ID, WINDOW, null); int[] restrictionList = MToolBarButtonRestrict.getOfWindow(m_ctx, MRole.getDefault().getAD_Role_ID(), AD_Window_ID, false, null);
log.info("restrictionList="+restrictionList.toString()); if (log.isLoggable(Level.INFO))
log.info("restrictionList="+restrictionList.toString());
for (int i = 0; i < restrictionList.length; i++) for (int i = 0; i < restrictionList.length; i++)
{ {
@ -565,7 +559,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(m_ctx, ToolBarButton_ID, null); X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(m_ctx, ToolBarButton_ID, null);
String restrictName = BTNPREFIX + tbt.getComponentName(); String restrictName = BTNPREFIX + tbt.getComponentName();
log.config("tbt="+tbt.getAD_ToolBarButton_ID() + " / " + restrictName); if (log.isLoggable(Level.CONFIG))
log.config("tbt="+tbt.getAD_ToolBarButton_ID() + " / " + restrictName);
for (Component p = this.getFirstChild(); p != null; p = p.getNextSibling()) { for (Component p = this.getFirstChild(); p != null; p = p.getNextSibling()) {
if (p instanceof ToolBarButton) { if (p instanceof ToolBarButton) {
@ -578,13 +573,56 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
} // All restrictions } // All restrictions
dynamicDisplay();
ToolBarMenuRestictionLoaded = true; ToolBarMenuRestictionLoaded = true;
} }
private void loadCustomButton(int AD_Window_ID) {
MToolBarButton[] mToolbarButtons = MToolBarButton.getOfWindow(AD_Window_ID, null);
if (mToolbarButtons != null && mToolbarButtons.length > 0) {
for (MToolBarButton mToolBarButton : mToolbarButtons) {
String actionId = mToolBarButton.getActionClassName();
ServiceTracker<IAction, IAction> serviceTracker = Actions.getActionTracker(actionId);
if (serviceTracker != null && serviceTracker.size() > 0) {
String labelKey = actionId + ".label";
String tooltipKey = actionId + ".tooltip";
String label = Msg.getMsg(Env.getCtx(), labelKey);
String tooltiptext = Msg.getMsg(Env.getCtx(), tooltipKey);
if (labelKey.equals(label)) {
label = mToolBarButton.getName();
}
if (tooltipKey.equals(tooltiptext)) {
tooltiptext = null;
}
ToolBarButton btn = createButton(mToolBarButton.getComponentName(), null, tooltiptext);
btn.removeEventListener(Events.ON_CLICK, this);
btn.setDisabled(false);
AImage aImage = Actions.getActionImage(actionId);
if (aImage != null) {
btn.setImageContent(aImage);
} else {
btn.setLabel(label);
}
ToolbarCustomButton toolbarCustomBtn = new ToolbarCustomButton(mToolBarButton, btn, actionId, windowNo);
toolbarCustomButtons.add(toolbarCustomBtn);
appendChild(btn);
}
}
}
}
public void enableProcessButton(boolean b) { public void enableProcessButton(boolean b) {
if (btnProcess != null) { if (btnProcess != null) {
btnProcess.setDisabled(!b); btnProcess.setDisabled(!b);
} }
} }
public void dynamicDisplay() {
for(ToolbarCustomButton toolbarCustomBtn : toolbarCustomButtons) {
toolbarCustomBtn.dynamicDisplay();
}
}
} }

View File

@ -47,7 +47,9 @@ import org.adempiere.webui.apps.form.WPayment;
import org.adempiere.webui.component.Listbox; import org.adempiere.webui.component.Listbox;
import org.adempiere.webui.component.ToolBarButton; import org.adempiere.webui.component.ToolBarButton;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.editor.IProcessButton;
import org.adempiere.webui.editor.WButtonEditor; import org.adempiere.webui.editor.WButtonEditor;
import org.adempiere.webui.editor.WEditor;
import org.adempiere.webui.event.ActionEvent; import org.adempiere.webui.event.ActionEvent;
import org.adempiere.webui.event.ActionListener; import org.adempiere.webui.event.ActionListener;
import org.adempiere.webui.event.DialogEvents; import org.adempiere.webui.event.DialogEvents;
@ -57,7 +59,6 @@ import org.adempiere.webui.panel.ADForm;
import org.adempiere.webui.panel.InfoPanel; import org.adempiere.webui.panel.InfoPanel;
import org.adempiere.webui.panel.WAttachment; import org.adempiere.webui.panel.WAttachment;
import org.adempiere.webui.panel.WDocActionPanel; import org.adempiere.webui.panel.WDocActionPanel;
import org.adempiere.webui.panel.action.ExportAction;
import org.adempiere.webui.panel.action.ReportAction; import org.adempiere.webui.panel.action.ReportAction;
import org.adempiere.webui.part.AbstractUIPart; import org.adempiere.webui.part.AbstractUIPart;
import org.adempiere.webui.session.SessionManager; import org.adempiere.webui.session.SessionManager;
@ -318,6 +319,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
return false; return false;
} }
Env.setContext(ctx, curWindowNo, "WindowName", gridWindow.getName()); Env.setContext(ctx, curWindowNo, "WindowName", gridWindow.getName());
Env.setContext(ctx, curWindowNo, "AD_Window_ID", gridWindow.getAD_Window_ID());
if (gridTab != null) if (gridTab != null)
gridTab.getTableModel().setChanged(false); gridTab.getTableModel().setChanged(false);
@ -334,6 +336,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
return true; return true;
} }
toolbar.updateToolbarAccess(adWindowId);
updateToolbar(); updateToolbar();
return true; return true;
@ -949,6 +952,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
ADTabpanel adtab = (ADTabpanel) event.getTarget(); ADTabpanel adtab = (ADTabpanel) event.getTarget();
if (adtab == adTabbox.getSelectedTabpanel()) { if (adtab == adTabbox.getSelectedTabpanel()) {
toolbar.enableProcessButton(adtab.getToolbarButtons().size() > 0); toolbar.enableProcessButton(adtab.getToolbarButtons().size() > 0);
toolbar.dynamicDisplay();
} }
} }
} }
@ -1336,12 +1340,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted()); toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted());
toolbar.enableReport(true); toolbar.enableReport(true);
toolbar.enableExport(!adTabbox.getSelectedGridTab().isSortTab());
//Deepak-Enabling customize button IDEMPIERE-364 //Deepak-Enabling customize button IDEMPIERE-364
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab)) if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
toolbar.enableCustomize(((ADTabpanel)adTabbox.getSelectedTabpanel()).isGridView()); toolbar.enableCustomize(((ADTabpanel)adTabbox.getSelectedTabpanel()).isGridView());
toolbar.updateToolBarAndMenuWithRestriction(gridWindow.getAD_Window_ID());
} }
/** /**
@ -2149,17 +2151,11 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
// //
@Override
public void onExport() {
ExportAction action = new ExportAction(this);
action.export();
}
/************************************************************************** /**************************************************************************
* Start Button Process * Start Button Process
* @param vButton button * @param vButton button
*/ */
private void actionButton (final WButtonEditor wButton) private void actionButton (final IProcessButton wButton)
{ {
if (adTabbox.getSelectedGridTab().hasChangedCurrentTabAndParents()) { if (adTabbox.getSelectedGridTab().hasChangedCurrentTabAndParents()) {
String msg = CLogger.retrieveErrorString("Please ReQuery Window"); String msg = CLogger.retrieveErrorString("Please ReQuery Window");
@ -2205,7 +2201,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
* @param col * @param col
* @param wButton * @param wButton
*/ */
private void actionButton0 (String col, final WButtonEditor wButton) private void actionButton0 (String col, final IProcessButton wButton)
{ {
final IADTabpanel adtabPanel = findADTabpanel(wButton); final IADTabpanel adtabPanel = findADTabpanel(wButton);
boolean startWOasking = false; boolean startWOasking = false;
@ -2242,7 +2238,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
// Pop up Payment Rules // Pop up Payment Rules
if (col.equals("PaymentRule")) if (col.equals("PaymentRule"))
{ {
final WPayment vp = new WPayment(curWindowNo, adtabPanel.getGridTab(), wButton); final WPayment vp = new WPayment(curWindowNo, adtabPanel.getGridTab(), (WButtonEditor) wButton);
if (vp.isInitOK()) // may not be allowed if (vp.isInitOK()) // may not be allowed
{ {
vp.setAttribute(Window.MODE_KEY, Window.MODE_HIGHLIGHTED); vp.setAttribute(Window.MODE_KEY, Window.MODE_HIGHLIGHTED);
@ -2397,7 +2393,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
isProcessMandatory); isProcessMandatory);
} // actionButton } // actionButton
private void executeButtonProcess(final WButtonEditor wButton, private void executeButtonProcess(final IProcessButton wButton,
final boolean startWOasking, final int table_ID, final int record_ID, final boolean startWOasking, final int table_ID, final int record_ID,
boolean isProcessMandatory) { boolean isProcessMandatory) {
/** /**
@ -2435,7 +2431,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
} }
} }
private void executeButtonProcess0(final WButtonEditor wButton, private void executeButtonProcess0(final IProcessButton wButton,
boolean startWOasking, int table_ID, int record_ID) { boolean startWOasking, int table_ID, int record_ID) {
// call form // call form
MProcess pr = new MProcess(ctx, wButton.getProcess_ID(), null); MProcess pr = new MProcess(ctx, wButton.getProcess_ID(), null);
@ -2482,13 +2478,13 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
{ {
Runnable runnable = new Runnable() { Runnable runnable = new Runnable() {
public void run() { public void run() {
String error = processButtonCallout((WButtonEditor)event.getSource()); String error = processButtonCallout((IProcessButton) event.getSource());
if (error != null && error.trim().length() > 0) if (error != null && error.trim().length() > 0)
{ {
breadCrumb.setStatusLine(error, true); breadCrumb.setStatusLine(error, true);
return; return;
} }
actionButton((WButtonEditor)event.getSource()); actionButton((IProcessButton) event.getSource());
} }
}; };
BusyDialogTemplate template = new BusyDialogTemplate(runnable); BusyDialogTemplate template = new BusyDialogTemplate(runnable);
@ -2508,23 +2504,26 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
* @return error message or "" * @return error message or ""
* @see org.compiere.model.Callout * @see org.compiere.model.Callout
*/ */
private String processButtonCallout (WButtonEditor button) private String processButtonCallout (IProcessButton button)
{ {
IADTabpanel adtab = findADTabpanel(button); IADTabpanel adtab = findADTabpanel(button);
if (adtab != null) { if (adtab != null) {
GridField field = adtab.getGridTab().getField(button.getColumnName()); GridField field = adtab.getGridTab().getField(button.getColumnName());
return adtab.getGridTab().processCallout(field); if (field != null)
return adtab.getGridTab().processCallout(field);
else
return "";
} else { } else {
return ""; return "";
} }
} // processButtonCallout } // processButtonCallout
public IADTabpanel findADTabpanel(WButtonEditor button) { public IADTabpanel findADTabpanel(IProcessButton button) {
IADTabpanel adtab = null; IADTabpanel adtab = null;
if (button.getADTabpanel() != null) if (button.getADTabpanel() != null)
return button.getADTabpanel(); return button.getADTabpanel();
Component c = button.getComponent(); Component c = button instanceof WEditor ? ((WEditor)button).getComponent() : (Component)button;
while (c != null) { while (c != null) {
if (c instanceof IADTabpanel) { if (c instanceof IADTabpanel) {
adtab = (IADTabpanel) c; adtab = (IADTabpanel) c;

View File

@ -56,8 +56,6 @@ public class CompositeADTabbox extends AbstractADTabbox
{ {
public static final String ON_SELECTION_CHANGED_EVENT = "onSelectionChanged"; public static final String ON_SELECTION_CHANGED_EVENT = "onSelectionChanged";
public static final String ADTAB_INDEX_ATTRIBUTE = "adtab.index";
/** Logger */ /** Logger */
@SuppressWarnings("unused") @SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger (CompositeADTabbox.class); private static CLogger log = CLogger.getCLogger (CompositeADTabbox.class);
@ -141,7 +139,7 @@ public class CompositeADTabbox extends AbstractADTabbox
int oldIndex = selectedIndex; int oldIndex = selectedIndex;
IADTabpanel selectedPanel = detailPane.getSelectedADTabpanel(); IADTabpanel selectedPanel = detailPane.getSelectedADTabpanel();
if (selectedPanel == null) return; if (selectedPanel == null) return;
int newIndex = (Integer)selectedPanel.getAttribute(ADTAB_INDEX_ATTRIBUTE); int newIndex = selectedPanel.getTabNo();
Event selectionChanged = new Event(ON_SELECTION_CHANGED_EVENT, layout, new Object[]{oldIndex, newIndex}); Event selectionChanged = new Event(ON_SELECTION_CHANGED_EVENT, layout, new Object[]{oldIndex, newIndex});
try { try {
@ -200,7 +198,7 @@ public class CompositeADTabbox extends AbstractADTabbox
tabLabelList.add(tabLabel); tabLabelList.add(tabLabel);
tabPanelList.add(tabPanel); tabPanelList.add(tabPanel);
tabPanel.setAttribute(ADTAB_INDEX_ATTRIBUTE, tabPanelList.size()-1); tabPanel.setTabNo(tabPanelList.size()-1);
tabPanel.addEventListener(ADTabpanel.ON_ACTIVATE_EVENT, new EventListener<Event>() { tabPanel.addEventListener(ADTabpanel.ON_ACTIVATE_EVENT, new EventListener<Event>() {
@Override @Override
@ -673,7 +671,7 @@ public class CompositeADTabbox extends AbstractADTabbox
if (detailPane.getTabcount() > 0) { if (detailPane.getTabcount() > 0) {
for(int i = 0; i < detailPane.getTabcount(); i++) { for(int i = 0; i < detailPane.getTabcount(); i++) {
IADTabpanel adtab = detailPane.getADTabpanel(i); IADTabpanel adtab = detailPane.getADTabpanel(i);
int index = (Integer) adtab.getAttribute(ADTAB_INDEX_ATTRIBUTE); int index = adtab.getTabNo();
if (index == tabIndex) { if (index == tabIndex) {
if (!detailPane.isTabVisible(i) || !detailPane.isTabEnabled(i)) { if (!detailPane.isTabVisible(i) || !detailPane.isTabEnabled(i)) {
return; return;

View File

@ -76,7 +76,6 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
private int windowNo; private int windowNo;
private GridTabDataBinder dataBinder; private GridTabDataBinder dataBinder;
private Map<GridField, WEditor> editors = new LinkedHashMap<GridField, WEditor>(); private Map<GridField, WEditor> editors = new LinkedHashMap<GridField, WEditor>();
private Map<GridField, WEditor> toolbarEditors = new LinkedHashMap<GridField, WEditor>();
private Paging paging; private Paging paging;
private Map<String, Map<Object, String>> lookupCache = null; private Map<String, Map<Object, String>> lookupCache = null;
@ -277,13 +276,6 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
return editorList; return editorList;
} }
public List<WEditor> getToolbarEditors() {
List<WEditor> editorList = new ArrayList<WEditor>();
if (!toolbarEditors.isEmpty())
editorList.addAll(toolbarEditors.values());
return editorList;
}
/** /**
* @param paging * @param paging
*/ */
@ -456,16 +448,6 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
row.appendChild(div); row.appendChild(div);
} }
for (GridField gridField : gridTabFields) {
if (gridField.isToolbarButton() && gridField.isDisplayed()) {
if (toolbarEditors.get(gridField) == null) {
WButtonEditor editor = (WButtonEditor) WebEditorFactory.getEditor(gridField, true);
toolbarEditors.put(gridField, editor);
editor.addActionListener(buttonListener);
}
}
}
if (rowIndex == gridTab.getCurrentRow()) { if (rowIndex == gridTab.getCurrentRow()) {
setCurrentRow(row); setCurrentRow(row);
} }

View File

@ -28,7 +28,6 @@ import org.adempiere.webui.component.Columns;
import org.adempiere.webui.component.EditorBox; import org.adempiere.webui.component.EditorBox;
import org.adempiere.webui.component.Grid; import org.adempiere.webui.component.Grid;
import org.adempiere.webui.component.NumberBox; import org.adempiere.webui.component.NumberBox;
import org.adempiere.webui.editor.WButtonEditor;
import org.adempiere.webui.editor.WEditor; import org.adempiere.webui.editor.WEditor;
import org.adempiere.webui.event.TouchEventHelper; import org.adempiere.webui.event.TouchEventHelper;
import org.adempiere.webui.util.SortComparator; import org.adempiere.webui.util.SortComparator;
@ -785,8 +784,6 @@ public class GridView extends Vbox implements EventListener<Event>
boolean noData = gridTab.getRowCount() == 0; boolean noData = gridTab.getRowCount() == 0;
List<WEditor> list = renderer.getEditors(); List<WEditor> list = renderer.getEditors();
dynamicDisplayEditors(noData, list);
list = renderer.getToolbarEditors();
dynamicDisplayEditors(noData, list); // all components dynamicDisplayEditors(noData, list); // all components
} }
@ -909,18 +906,4 @@ public class GridView extends Vbox implements EventListener<Event>
} }
return details; return details;
} }
public List<WButtonEditor> getToolbarButtons() {
List<WButtonEditor> buttonList = new ArrayList<WButtonEditor>();
List<WEditor> editors = renderer.getToolbarEditors();
for(WEditor editor : editors) {
if (editor instanceof WButtonEditor && editor.getComponent() != null && editor.getComponent().isVisible()) {
WButtonEditor btnEditor = (WButtonEditor) editor;
buttonList.add(btnEditor);
editor.setValue(editor.getGridField().getValue());
btnEditor.setADTabpanel((IADTabpanel) this.getParent());
}
}
return buttonList;
}
} }

View File

@ -128,4 +128,8 @@ public interface IADTabpanel extends Component, Evaluatee {
public boolean needSave(boolean rowChange, boolean onlyRealChange); public boolean needSave(boolean rowChange, boolean onlyRealChange);
public boolean dataSave(boolean onSaveEvent); public boolean dataSave(boolean onSaveEvent);
public void setTabNo(int tabNo);
public int getTabNo();
} }

View File

@ -7,6 +7,7 @@ import java.util.List;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.editor.WButtonEditor; import org.adempiere.webui.editor.WButtonEditor;
import org.zkoss.zul.Button;
import org.zkoss.zul.Vbox; import org.zkoss.zul.Vbox;
/** /**
@ -20,7 +21,7 @@ public class ProcessButtonPopup extends Window {
*/ */
private static final long serialVersionUID = 304878472233552113L; private static final long serialVersionUID = 304878472233552113L;
public void render(List<WButtonEditor> editors) { public void render(List<Button> buttons) {
setSclass("toolbar-popup-window"); setSclass("toolbar-popup-window");
//setWidth("250px"); //setWidth("250px");
setHflex("min"); setHflex("min");
@ -31,11 +32,11 @@ public class ProcessButtonPopup extends Window {
vbox.setSclass("toolbar-popup-window-cnt"); vbox.setSclass("toolbar-popup-window-cnt");
vbox.setAlign("stretch"); vbox.setAlign("stretch");
for(WButtonEditor editor : editors) { for(Button button : buttons) {
if (editor.getComponent().getPage() != null) { if (button.getPage() != null) {
editor.getComponent().detach(); button.detach();
} }
vbox.appendChild(editor.getComponent()); vbox.appendChild(button);
} }
} }

View File

@ -0,0 +1,83 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.webui.adwindow;
import org.adempiere.webui.action.Actions;
import org.adempiere.webui.action.IAction;
import org.compiere.model.MToolBarButton;
import org.compiere.util.Env;
import org.compiere.util.Evaluatee;
import org.compiere.util.Evaluator;
import org.osgi.util.tracker.ServiceTracker;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Toolbarbutton;
public class ToolbarCustomButton implements EventListener<Event>, Evaluatee {
private Toolbarbutton toolbarButton;
private String actionId;
private int windowNo;
private MToolBarButton mToolbarButton;
public ToolbarCustomButton(MToolBarButton mToolbarButton, Toolbarbutton btn, String actionId, int windowNo) {
toolbarButton = btn;
this.actionId = actionId;
this.windowNo = windowNo;
this.mToolbarButton = mToolbarButton;
toolbarButton.addEventListener(Events.ON_CLICK, this);
}
@Override
public void onEvent(Event event) throws Exception {
ServiceTracker<IAction, IAction> serviceTracker = Actions.getActionTracker(actionId);
if (serviceTracker != null) {
IAction action = serviceTracker.getService();
if (action != null) {
action.execute(ADWindow.get(windowNo));
}
}
}
@Override
public String get_ValueAsString(String variableName) {
ADWindow adwindow = ADWindow.get(windowNo);
if (adwindow == null)
return "";
IADTabpanel adTabpanel = adwindow.getADWindowContent().getADTab().getSelectedTabpanel();
if (adTabpanel == null)
return "";
int tabNo = adTabpanel.getTabNo();
if( tabNo == 0)
return adTabpanel.get_ValueAsString(variableName);
else
return Env.getContext (Env.getCtx(), windowNo, tabNo, variableName, false, true);
}
public void dynamicDisplay() {
if (toolbarButton.getParent() == null)
return;
String displayLogic = mToolbarButton.getDisplayLogic();
if (displayLogic == null || displayLogic.trim().length() == 0)
return;
boolean visible = Evaluator.evaluateLogic(this, displayLogic);
toolbarButton.setVisible(visible);
}
}

View File

@ -0,0 +1,134 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.webui.adwindow;
import org.adempiere.webui.editor.IProcessButton;
import org.adempiere.webui.event.ActionEvent;
import org.adempiere.webui.event.ActionListener;
import org.compiere.model.I_AD_Process;
import org.compiere.model.MProcess;
import org.compiere.model.MToolBarButton;
import org.compiere.util.Env;
import org.compiere.util.Evaluatee;
import org.compiere.util.Evaluator;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Button;
/**
* @author hengsin
*
*/
public class ToolbarProcessButton implements IProcessButton, Evaluatee {
private MToolBarButton mToolbarButton;
private IADTabpanel adTabpanel;
private String name;
private String description;
private ActionListener actionListener;
private Button button;
private int windowNo;
/**
* @param windowNo
*
*/
public ToolbarProcessButton(MToolBarButton mToolbarButton, IADTabpanel adTabpanel, ActionListener listener, int windowNo) {
this.mToolbarButton = mToolbarButton;
this.adTabpanel = adTabpanel;
this.actionListener = listener;
this.windowNo = windowNo;
MProcess process = MProcess.get(Env.getCtx(), getProcess_ID());
name = process.get_Translation(I_AD_Process.COLUMNNAME_Name);
description = process.get_Translation(I_AD_Process.COLUMNNAME_Description);
button = new Button();
button.setLabel(name);
if (description != null && description.trim().length() > 0)
button.setTooltiptext(description);
button.setAttribute("component.name", mToolbarButton.getComponentName());
button.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
@Override
public void onEvent(Event event) throws Exception {
if (actionListener != null) {
ActionEvent actionEvent = new ActionEvent(ToolbarProcessButton.this, getColumnName(), Events.ON_CLICK);
actionListener.actionPerformed(actionEvent);
}
}
});
}
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getProcess_ID()
*/
@Override
public int getProcess_ID() {
return mToolbarButton.getAD_Process_ID();
}
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getADTabpanel()
*/
@Override
public IADTabpanel getADTabpanel() {
return adTabpanel;
}
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getColumnName()
*/
@Override
public String getColumnName() {
return mToolbarButton.getComponentName();
}
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getDescription()
*/
@Override
public String getDescription() {
return description;
}
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getDisplay()
*/
@Override
public String getDisplay() {
return name;
}
public Button getButton() {
return button;
}
public void dynamicDisplay() {
String displayLogic = mToolbarButton.getDisplayLogic();
if (displayLogic == null || displayLogic.trim().length() == 0)
return;
boolean visible = Evaluator.evaluateLogic(this, displayLogic);
button.setVisible(visible);
}
@Override
public String get_ValueAsString(String variableName) {
int tabNo = adTabpanel.getTabNo();
if( tabNo == 0)
return adTabpanel.get_ValueAsString(variableName);
else
return Env.getContext (Env.getCtx(), windowNo, tabNo, variableName, false, true);
}
}

View File

@ -0,0 +1,38 @@
/******************************************************************************
* Copyright (C) 2012 Heng Sin Low *
* Copyright (C) 2012 Trek Global *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*****************************************************************************/
package org.adempiere.webui.editor;
import org.adempiere.webui.adwindow.IADTabpanel;
/**
*
* @author hengsin
*
*/
public interface IProcessButton {
/**
* Get AD_Process_ID
* @return AD_Process_ID or 0
*/
public int getProcess_ID();
public IADTabpanel getADTabpanel();
public String getColumnName();
public String getDescription();
public String getDisplay();
}

View File

@ -47,7 +47,7 @@ import org.zkoss.zk.ui.event.Events;
* Modifications - UI Compatibility * Modifications - UI Compatibility
* @author ashley * @author ashley
*/ */
public class WButtonEditor extends WEditor public class WButtonEditor extends WEditor implements IProcessButton
{ {
private static final String[] LISTENER_EVENTS = {Events.ON_CLICK}; private static final String[] LISTENER_EVENTS = {Events.ON_CLICK};
@ -88,10 +88,10 @@ public class WButtonEditor extends WEditor
init(); init();
} }
/** /* (non-Javadoc)
* Get AD_Process_ID * @see org.adempiere.webui.editor.IProcessButton#getProcess_ID()
* @return AD_Process_ID or 0
*/ */
@Override
public int getProcess_ID() public int getProcess_ID()
{ {
return AD_Process_ID; return AD_Process_ID;
@ -292,6 +292,10 @@ public class WButtonEditor extends WEditor
this.adTabpanel = adTabpanel; this.adTabpanel = adTabpanel;
} }
/* (non-Javadoc)
* @see org.adempiere.webui.editor.IProcessButton#getADTabpanel()
*/
@Override
public IADTabpanel getADTabpanel() { public IADTabpanel getADTabpanel() {
return adTabpanel; return adTabpanel;
} }

View File

@ -160,11 +160,6 @@ public interface ToolbarListener
*/ */
public void onCopy(); public void onCopy();
/**
* Export grid data
*/
public void onExport();
/** /**
* Customize grid view. * Customize grid view.
*/ */

View File

@ -282,7 +282,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
toolBar.appendChild(bSendMail); toolBar.appendChild(bSendMail);
bSendMail.addEventListener(Events.ON_CLICK, this); bSendMail.addEventListener(Events.ON_CLICK, this);
bSendMail.setName("Archive"); bArchive.setName("Archive");
bArchive.setImage("/images/Archive24.png"); bArchive.setImage("/images/Archive24.png");
bArchive.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Archive"))); bArchive.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Archive")));
toolBar.appendChild(bArchive); toolBar.appendChild(bArchive);
@ -326,7 +326,9 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
linkDiv.appendChild(reportLink); linkDiv.appendChild(reportLink);
south.appendChild(linkDiv); south.appendChild(linkDiv);
//m_WindowNo //m_WindowNo
updateToolBarAndMenuWithRestriction(m_reportEngine.getWindowNo()); int AD_Window_ID = Env.getContextAsInt(Env.getCtx(), m_reportEngine.getWindowNo(), "AD_Window_ID", true);
int AD_Process_ID = m_reportEngine.getPrintInfo() != null ? m_reportEngine.getPrintInfo().getAD_Process_ID() : 0;
updateToolbarAccess(AD_Window_ID, AD_Process_ID);
try { try {
renderReport(); renderReport();
@ -1103,21 +1105,28 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
} }
private boolean ToolBarMenuRestictionLoaded = false; private boolean ToolBarMenuRestictionLoaded = false;
public void updateToolBarAndMenuWithRestriction(int AD_Window_ID) { public void updateToolbarAccess(int AD_Window_ID, int AD_Process_ID) {
if (ToolBarMenuRestictionLoaded) if (ToolBarMenuRestictionLoaded)
return; return;
Properties m_ctx = Env.getCtx(); Properties m_ctx = Env.getCtx();
int ToolBarButton_ID = 0; int ToolBarButton_ID = 0;
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "R", AD_Window_ID, REPORT, null); int[] restrictionList = AD_Window_ID > 0
log.info("restrictionList="+restrictionList.toString()); ? MToolBarButtonRestrict.getOfWindow(m_ctx, MRole.getDefault().getAD_Role_ID(), AD_Window_ID, true, null)
: MToolBarButtonRestrict.getOfReport(m_ctx, MRole.getDefault().getAD_Role_ID(), AD_Process_ID, null);
if (log.isLoggable(Level.INFO))
log.info("restrictionList="+restrictionList.toString());
for (int i = 0; i < restrictionList.length; i++) for (int i = 0; i < restrictionList.length; i++)
{ {
ToolBarButton_ID= restrictionList[i]; ToolBarButton_ID= restrictionList[i];
X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(m_ctx, ToolBarButton_ID, null); X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(m_ctx, ToolBarButton_ID, null);
if (!"R".equals(tbt.getAction()))
continue;
String restrictName = tbt.getComponentName(); String restrictName = tbt.getComponentName();
log.config("tbt="+tbt.getAD_ToolBarButton_ID() + " / " + restrictName); if (log.isLoggable(Level.CONFIG))
log.config("tbt="+tbt.getAD_ToolBarButton_ID() + " / " + restrictName);
for (Component p = this.toolBar.getFirstChild(); p != null; p = p.getNextSibling()) { for (Component p = this.toolBar.getFirstChild(); p != null; p = p.getNextSibling()) {
if (p instanceof Toolbarbutton) { if (p instanceof Toolbarbutton) {

View File

@ -74,6 +74,10 @@
<name>org.zkoss.zul.Button.mold</name> <name>org.zkoss.zul.Button.mold</name>
<value>trendy</value> <value>trendy</value>
</library-property> </library-property>
<library-property>
<name>org.adempiere.webui.component.Button.mold</name>
<value>trendy</value>
</library-property>
<library-property> <library-property>
<name>org.zkoss.zul.theme.fontSizeM <name>org.zkoss.zul.theme.fontSizeM