Merge from trekglobal repository

This commit is contained in:
Carlos Ruiz 2012-08-23 08:38:25 -05:00
commit 5cd19d949b
17 changed files with 2603 additions and 142 deletions

View File

@ -0,0 +1,881 @@
-- Aug 22, 2012 5:23:53 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','6',200013,'N','N','N','N','U','L','b86bdb9e-f5b6-4180-93ec-8bdd5b73e467','Y','Y','PA_DashboardPreference','Dashboard Preference',0,'Y',0,TO_DATE('2012-08-22 17:23:52','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2012-08-22 17:23:52','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 22, 2012 5:23:53 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_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_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Aug 22, 2012 5:23:54 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200013,'fcf31a3d-3c64-4a0b-8b0e-2507e44da1e1','Table PA_DashboardPreference','PA_DashboardPreference',1,0,0,TO_DATE('2012-08-22 17:23:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-22 17:23:53','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200324,'U','Y','N','N','N',10,'N',19,'Y',129,'N',102,'N','Y','70838ff0-ef46-4185-87d5-b9fb148d91ff','N','N','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_DATE('2012-08-22 17:24:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:07','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
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=200324 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)
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200325,'U','Y','N','N','N',10,'N',19,'Y','N',113,'N','Y','9186e599-cd33-45b5-9b59-2e48aeb5dbe6','N','N','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_DATE('2012-08-22 17:24:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:08','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
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=200325 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)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200326,'U','N','N','N',0,'N',10,'N',19,'N','N',117,'N','Y','c2c4abb3-95b6-4de5-94a1-625f5754b377','N','Y','N','AD_Process_ID','Process or Report','The Process field identifies a unique Process or Report in the system.','Process','Y',100,TO_DATE('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
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=200326 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)
;
-- Aug 22, 2012 5:24:10 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200327,'U','N','N','N',0,'N',10,'N',19,'N','N',123,'N','Y','87bf2881-832d-4bde-98a6-2b3ca3bc10e6','N','Y','N','AD_Role_ID','Responsibility Role','0','The Role determines security and access a user who has this Role will have in the System.','Role','Y',100,TO_DATE('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:10 PM SGT
-- Move the Menu to be a Portlet
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=200327 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)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200328,'U','N','N','N',0,'N',10,'N',19,'N','N',138,'N','Y','40fd1caf-0831-4740-9955-df6ef22b0259','N','Y','N','AD_User_ID','User within the system - Internal or Business Partner Contact','0','The User identifies a unique user in the system. This could be an internal user or a business partner contact','User/Contact','Y',100,TO_DATE('2012-08-22 17:24:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:10','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
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=200328 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)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200329,'U','N','N','N','N',22,'N',19,'Y','N',143,'N','Y','b2130167-7717-4e78-b0a9-f4bb18e13de4','N','Y','N','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',100,TO_DATE('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
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=200329 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)
;
-- Aug 22, 2012 5:24:12 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200330,'U','N','N','N',0,'N',14,'N',11,'N','N',53709,'N','Y','21266064-7289-4578-a943-d036513c89f9','N','Y','N','ColumnNo','Dashboard content column number','1','Dashboard content column number, not used by the swing client at the moment.','Column No','Y',100,TO_DATE('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:12 PM SGT
-- Move the Menu to be a Portlet
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=200330 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)
;
-- Aug 22, 2012 5:24:13 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200331,'U','Y','N','N','N',7,'N',16,'Y','N',245,'N','Y','54aa33eb-11c3-4dd0-a49e-68a820b2fa8f','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2012-08-22 17:24:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:12','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:13 PM SGT
-- Move the Menu to be a Portlet
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=200331 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)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200332,'U',110,'Y','N','N','N',10,'N',18,'Y','N',246,'N','Y','08ae2c42-fe47-47b2-a990-aafd60ece4bc','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2012-08-22 17:24:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:13','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
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=200332 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)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200333,'U','N','Y','N','N',255,'Y',10,'Y','N',275,'N','Y','b2af550f-29eb-4a59-b3b5-73a95901072e','N','Y','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_DATE('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
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=200333 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)
;
-- Aug 22, 2012 5:24:15 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.000000000000,200013,200334,'U',53316,'N','N','N',0,'N',1,'N',17,'N','N',53895,'N','Y','73f3c7f5-ed37-4f88-afe1-6e2de5a52083','N','Y','N','GoalDisplay','Type of goal display on dashboard','T','Display goal on dashboard as html table or graph.','Goal Display','Y',100,TO_DATE('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:15 PM SGT
-- Move the Menu to be a Portlet
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=200334 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)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200335,'U','N','N','N','N','N',36,'Y','N',51005,'N','Y','0a89bacd-d3ba-41ad-8734-5f40eb2f0d70','N','Y','N','HTML','HTML','Y',100,TO_DATE('2012-08-22 17:24:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:15','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
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=200335 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)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200336,'U','Y','N','N','N',1,'N',20,'Y','N',348,'N','Y','bd00cfcd-649f-4d7e-9952-464ddd47a214','N','Y','N','IsActive','The record is active in the system','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.','Active','N',100,TO_DATE('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
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=200336 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)
;
-- Aug 22, 2012 5:24:17 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200337,'U','Y','N','N',0,'N',1,'N',20,'N','N',53336,'N','Y','c1b56cc4-2b4f-440d-90f6-0101e10f95fc','N','Y','N','IsCollapsedByDefault','Flag to set the initial state of collapsible field group.','N','Collapsed By Default','Y',100,TO_DATE('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:17 PM SGT
-- Move the Menu to be a Portlet
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=200337 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)
;
-- Aug 22, 2012 5:24:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200338,'U','Y','N','N',0,'N',1,'N',20,'N','N',53715,'N','Y','95747f07-876e-4b73-afd8-0f3e89681e47','N','Y','N','IsCollapsible','Flag to indicate the state of the dashboard panel','Y','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)','Collapsible','Y',100,TO_DATE('2012-08-22 17:24:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:17','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:18 PM SGT
-- Move the Menu to be a Portlet
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=200338 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)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200339,'U','Y','N','N',0,'N',1,'N',20,'N','N',200075,'N','Y','ce4c22dd-129d-4a4c-b4e3-80ac8f2558f0','N','Y','N','IsEmbedReportContent','Embed report content into dashboard','N','Embed Report Content','Y',100,TO_DATE('2012-08-22 17:24:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:18','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
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=200339 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)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200340,'U','Y','N','N',0,'N',1,'N',20,'N','N',200074,'N','Y','ece566cd-05a3-4c78-80cb-b72d37fd97bf','N','Y','N','IsShowInDashboard','Show the dashlet in the dashboard','''Y''','Show in Dashboard','Y',100,TO_DATE('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
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=200340 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)
;
-- Aug 22, 2012 5:24:20 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200341,'U','N','N','N','N',22,'N',22,'Y','N',439,'N','Y','b6b75e0a-4a17-4120-81eb-954c040f91b6','N','Y','N','Line','Unique line for this document','Indicates the unique line for a document. It will also control the display order of the lines within a document.','Line No','Y',100,TO_DATE('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:20 PM SGT
-- Move the Menu to be a Portlet
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=200341 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)
;
-- Aug 22, 2012 5:24:21 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200342,'U','Y','Y','Y',1,'N',120,'Y',10,'Y','N',469,'N','Y','e194e552-2d9e-462d-a764-c4291635f73e','N','Y','N','Name','Alphanumeric identifier of the entity','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.','Name','Y',100,TO_DATE('2012-08-22 17:24:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:20','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:21 PM SGT
-- Move the Menu to be a Portlet
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=200342 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)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('PA_DashboardPreference_ID',200097,'U','Dashboard Preference','Dashboard Preference','5e8c3a0b-3d43-416e-9101-c85fb17bf717',0,TO_DATE('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200097 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200343,'U','Y','N','N','N',10,'N',13,'Y','Y',200097,'N','Y','6c0f49bf-fcfe-43ca-b2bf-ea89f23b5d4a','N','N','N','PA_DashboardPreference_ID','Dashboard Preference','N',100,TO_DATE('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
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=200343 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)
;
-- Aug 22, 2012 5:24:23 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200013,200344,'U','N','N','N','N',36,'N',10,'N','N',55058,'N','Y','b268bb72-324c-4c88-bb92-c12e519e0299','N','Y','N','PA_DashboardContent_UU','PA_DashboardContent_UU','N',100,TO_DATE('2012-08-22 17:24:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:22','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:23 PM SGT
-- Move the Menu to be a Portlet
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=200344 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)
;
-- Aug 22, 2012 5:24:24 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200345,'U','N','N','N','N',22,'N',19,'Y','N',1594,'N','Y','09ecd680-ff20-4e63-aa11-75514bab82c6','N','Y','N','PA_Goal_ID','Performance Goal','The Performance Goal indicates what this users performance will be measured against.','Goal','Y',100,TO_DATE('2012-08-22 17:24:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:23','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:24 PM SGT
-- Move the Menu to be a Portlet
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=200345 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)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200346,'U','N','N','N',0,'N',2000,'N',10,'N','N',200076,'N','Y','56ba0131-e162-43ab-abb7-dd979d3f7050','N','Y','N','ProcessParameters','Comma separated process parameter list','A list of name value pair process parameter separated by comma','Process Parameters','Y',100,TO_DATE('2012-08-22 17:24:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:24','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
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=200346 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)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200347,'U','Y','N','N','N',7,'N',16,'Y','N',607,'N','Y','b837c94e-ed52-440e-99b5-5497b8dc97df','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
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=200347 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)
;
-- Aug 22, 2012 5:24:26 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200348,'U',110,'Y','N','N','N',10,'N',18,'Y','N',608,'N','Y','91488e3a-d7f2-4d34-bcb2-60ce40dfcc0b','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:26 PM SGT
-- Move the Menu to be a Portlet
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=200348 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)
;
-- Aug 22, 2012 5:24:27 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200349,'U','N','N','N',0,'N',255,'N',10,'N','N',53710,'N','Y','53db2cfd-ae14-41c8-8e41-3e76d913a01a','N','Y','N','ZulFilePath','Absolute path to zul file','Absolute path to zul file that is use to generate dashboard content','ZUL File Path','Y',100,TO_DATE('2012-08-22 17:24:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:24:26','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:27 PM SGT
-- Move the Menu to be a Portlet
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=200349 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)
;
-- Aug 22, 2012 5:24:43 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200326
;
-- Aug 22, 2012 5:24:43 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200326
;
-- Aug 22, 2012 5:24:47 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200329
;
-- Aug 22, 2012 5:24:47 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200329
;
-- Aug 22, 2012 5:24:53 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200333
;
-- Aug 22, 2012 5:24:53 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200333
;
-- Aug 22, 2012 5:24:56 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200334
;
-- Aug 22, 2012 5:24:56 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200334
;
-- Aug 22, 2012 5:24:59 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200335
;
-- Aug 22, 2012 5:24:59 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200335
;
-- Aug 22, 2012 5:25:17 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200338
;
-- Aug 22, 2012 5:25:17 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200338
;
-- Aug 22, 2012 5:25:20 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200339
;
-- Aug 22, 2012 5:25:20 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200339
;
-- Aug 22, 2012 5:25:27 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200342
;
-- Aug 22, 2012 5:25:27 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200342
;
-- Aug 22, 2012 5:25:32 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200344
;
-- Aug 22, 2012 5:25:32 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200344
;
-- Aug 22, 2012 5:25:35 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200345
;
-- Aug 22, 2012 5:25:35 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200345
;
-- Aug 22, 2012 5:25:38 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200346
;
-- Aug 22, 2012 5:25:38 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200346
;
-- Aug 22, 2012 5:25:41 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200349
;
-- Aug 22, 2012 5:25:41 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200349
;
-- Aug 22, 2012 5:26:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200350,'U','Y','N','N',0,'N',10,'N',19,'N','N',51006,'N','Y','79fe7ad2-2a7e-43f2-b656-01bc294a6b89','N','Y','N','PA_DashboardContent_ID','Dashboard Content','Y',100,TO_DATE('2012-08-22 17:26:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-22 17:26:07','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:26:08 PM SGT
-- Move the Menu to be a Portlet
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=200350 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)
;
-- Aug 22, 2012 5:26:20 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2012-08-22 17:26:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200327
;
-- Aug 22, 2012 5:26:23 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2012-08-22 17:26:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200328
;
-- Aug 22, 2012 5:26:53 PM SGT
-- Move the Menu to be a Portlet
CREATE TABLE PA_DashboardPreference (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, AD_Role_ID NUMBER(10) DEFAULT 0 NOT NULL, AD_User_ID NUMBER(10) DEFAULT 0 NOT NULL, ColumnNo NUMBER(10) DEFAULT 1, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, IsCollapsedByDefault CHAR(1) DEFAULT 'N' CHECK (IsCollapsedByDefault IN ('Y','N')) NOT NULL, IsShowInDashboard CHAR(1) DEFAULT 'Y' CHECK (IsShowInDashboard IN ('Y','N')) NOT NULL, Line NUMBER DEFAULT NULL , PA_DashboardContent_ID NUMBER(10) NOT NULL, PA_DashboardPreference_ID NUMBER(10) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT PA_DashboardPreference_Key PRIMARY KEY (PA_DashboardPreference_ID))
;
-- Aug 22, 2012 5:27:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Window (WindowType,IsSOTrx,IsDefault,IsBetaFunctionality,EntityType,Name,AD_Window_ID,Processing,AD_Window_UU,Created,Updated,AD_Org_ID,AD_Client_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('M','Y','N','N','U','Dashboard Preference',200006,'N','b40fb952-f507-43c0-a736-4027a729cf95',TO_DATE('2012-08-22 17:27:17','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-22 17:27:17','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100)
;
-- Aug 22, 2012 5:27:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Window_Trl_UU ) SELECT l.AD_Language,t.AD_Window_ID, 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_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200006 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- Aug 22, 2012 5:27:49 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,ImportFields,HasTree,IsReadOnly,IsInfoTab,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Processing,IsActive) VALUES ('N',200006,10,'N','N',200013,'N','N','N','N','Y','N',0,'8913e23b-efab-4d76-8c16-cf020ad5f47b','U','Preference',200011,0,0,TO_DATE('2012-08-22 17:27:48','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-22 17:27:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y')
;
-- Aug 22, 2012 5:27:49 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,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.Help,t.CommitWarning,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=200011 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)
;
-- Aug 22, 2012 5:27:56 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200336,'Y',200298,'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.','U','The record is active in the system','Active','N','Y','60efaf22-47aa-458e-844d-1795f0ae7d51',100,0,TO_DATE('2012-08-22 17:27:55','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:55','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:56 PM SGT
-- Move the Menu to be a Portlet
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=200298 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)
;
-- Aug 22, 2012 5:27:57 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200324,'Y',200299,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','U','Client/Tenant for this installation.','Client','N','Y','4c8e0f92-8621-404c-b74e-a7bbe371dfba',100,0,TO_DATE('2012-08-22 17:27:56','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:56','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:57 PM SGT
-- Move the Menu to be a Portlet
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=200299 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)
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200337,'Y',200300,'N','U','Flag to set the initial state of collapsible field group.','Collapsed By Default','N','Y','2de9e3c6-79c7-4535-933a-676e3088b846',100,0,TO_DATE('2012-08-22 17:27:57','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:57','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
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=200300 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)
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,14,'N','N',200330,'Y',200301,'N','Dashboard content column number, not used by the swing client at the moment.','U','Dashboard content column number','Column No','N','Y','6046d04b-ce13-46c5-93d3-ace1ad5cc3b6',100,0,TO_DATE('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
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=200301 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)
;
-- Aug 22, 2012 5:27:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200350,'Y',200302,'N','U','Dashboard Content','N','Y','54cfd09f-cdeb-4713-b18a-260046407687',100,0,TO_DATE('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:59 PM SGT
-- Move the Menu to be a Portlet
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=200302 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)
;
-- Aug 22, 2012 5:28:00 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid) VALUES ('N',200011,10,'N','N',200343,'Y',200303,'N','U','Dashboard Preference','N','N','1261ce0f-507d-4d5f-a2ef-0f19fa852cc5',100,0,TO_DATE('2012-08-22 17:27:59','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:27:59','YYYY-MM-DD HH24:MI:SS'),'Y','N')
;
-- Aug 22, 2012 5:28:00 PM SGT
-- Move the Menu to be a Portlet
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=200303 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)
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,22,'N','N',200341,'Y',200304,'N','Indicates the unique line for a document. It will also control the display order of the lines within a document.','U','Unique line for this document','Line No','N','Y','110508e7-f036-4756-9b1c-f25534679786',100,0,TO_DATE('2012-08-22 17:28:00','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:28:00','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
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=200304 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)
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200325,'Y',200305,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','U','Organizational entity within client','Organization','N','Y','81c96d66-b03c-4297-ae6c-013e12115406',100,0,TO_DATE('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
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=200305 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)
;
-- Aug 22, 2012 5:28:02 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200327,'Y',200306,'N','The Role determines security and access a user who has this Role will have in the System.','U','Responsibility Role','Role','N','Y','9123affc-baac-4b31-b9aa-cf6b2031d042',100,0,TO_DATE('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:02 PM SGT
-- Move the Menu to be a Portlet
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=200306 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)
;
-- Aug 22, 2012 5:28:03 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200340,'Y',200307,'N','U','Show the dashlet in the dashboard','Show in Dashboard','N','Y','45eb1a7e-6531-4ca6-8c98-fd8de091b9d0',100,0,TO_DATE('2012-08-22 17:28:02','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:28:02','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:03 PM SGT
-- Move the Menu to be a Portlet
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=200307 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)
;
-- Aug 22, 2012 5:28:04 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200328,'Y',200308,'N','The User identifies a unique user in the system. This could be an internal user or a business partner contact','U','User within the system - Internal or Business Partner Contact','User/Contact','N','Y','cfbb0b1a-eaac-4d94-aca0-70c47423973c',100,0,TO_DATE('2012-08-22 17:28:03','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-08-22 17:28:03','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:04 PM SGT
-- Move the Menu to be a Portlet
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=200308 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)
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:29:50 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2012-08-22 17:29:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:29:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2012-08-22 17:29:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:30:15 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2012-08-22 17:30:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,Action,AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200006,200010,'N','N','N','D','Y','Dashboard Preference','W','b8b799ed-2f7b-458c-9764-b715dc43dde2','Y',0,100,TO_DATE('2012-08-22 17:30:59','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2012-08-22 17:30:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, 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_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200010 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200010, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200010)
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=441
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=149
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=50010
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200010
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=171
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=437
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=240
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=361
;
-- Aug 22, 2012 5:31:25 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Window SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200006
;
-- Aug 22, 2012 5:31:35 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Tab SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200011
;
-- Aug 22, 2012 5:31:44 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:31:48 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:31:52 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:31:55 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:31:58 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:31:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:32:02 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:32:05 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:32:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:32:12 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:32:15 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:32:35 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Table SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200013
;
-- Aug 22, 2012 5:32:44 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200324
;
-- Aug 22, 2012 5:32:47 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200325
;
-- Aug 22, 2012 5:32:50 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200327
;
-- Aug 22, 2012 5:32:53 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200328
;
-- Aug 22, 2012 5:32:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:32:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200330
;
-- Aug 22, 2012 5:33:00 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200331
;
-- Aug 22, 2012 5:33:03 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200332
;
-- Aug 22, 2012 5:33:07 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200336
;
-- Aug 22, 2012 5:33:10 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200337
;
-- Aug 22, 2012 5:33:13 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200340
;
-- Aug 22, 2012 5:33:16 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200341
;
-- Aug 22, 2012 5:33:20 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200350
;
-- Aug 22, 2012 5:33:23 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D', IsUpdateable='N',Updated=TO_DATE('2012-08-22 17:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200343
;
-- Aug 22, 2012 5:33:26 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200347
;
-- Aug 22, 2012 5:33:30 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-08-22 17:33:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200348
;
UPDATE AD_System
SET LastMigrationScriptApplied='888_IDEMPIERE-357_MenuPortlet.sql'
WHERE LastMigrationScriptApplied<'888_IDEMPIERE-357_MenuPortlet.sql'
OR LastMigrationScriptApplied IS NULL
;

View File

@ -0,0 +1,881 @@
-- Aug 22, 2012 5:23:53 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','6',200013,'N','N','N','N','U','L','b86bdb9e-f5b6-4180-93ec-8bdd5b73e467','Y','Y','PA_DashboardPreference','Dashboard Preference',0,'Y',0,TO_TIMESTAMP('2012-08-22 17:23:52','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2012-08-22 17:23:52','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 22, 2012 5:23:53 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_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_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Aug 22, 2012 5:23:54 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200013,'fcf31a3d-3c64-4a0b-8b0e-2507e44da1e1','Table PA_DashboardPreference','PA_DashboardPreference',1,0,0,TO_TIMESTAMP('2012-08-22 17:23:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-22 17:23:53','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200324,'U','Y','N','N','N',10,'N',19,'Y',129,'N',102,'N','Y','70838ff0-ef46-4185-87d5-b9fb148d91ff','N','N','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_TIMESTAMP('2012-08-22 17:24:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:07','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
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=200324 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)
;
-- Aug 22, 2012 5:24:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200325,'U','Y','N','N','N',10,'N',19,'Y','N',113,'N','Y','9186e599-cd33-45b5-9b59-2e48aeb5dbe6','N','N','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_TIMESTAMP('2012-08-22 17:24:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:08','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
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=200325 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)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200326,'U','N','N','N',0,'N',10,'N',19,'N','N',117,'N','Y','c2c4abb3-95b6-4de5-94a1-625f5754b377','N','Y','N','AD_Process_ID','Process or Report','The Process field identifies a unique Process or Report in the system.','Process','Y',100,TO_TIMESTAMP('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:09 PM SGT
-- Move the Menu to be a Portlet
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=200326 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)
;
-- Aug 22, 2012 5:24:10 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200327,'U','N','N','N',0,'N',10,'N',19,'N','N',123,'N','Y','87bf2881-832d-4bde-98a6-2b3ca3bc10e6','N','Y','N','AD_Role_ID','Responsibility Role','0','The Role determines security and access a user who has this Role will have in the System.','Role','Y',100,TO_TIMESTAMP('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:10 PM SGT
-- Move the Menu to be a Portlet
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=200327 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)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200328,'U','N','N','N',0,'N',10,'N',19,'N','N',138,'N','Y','40fd1caf-0831-4740-9955-df6ef22b0259','N','Y','N','AD_User_ID','User within the system - Internal or Business Partner Contact','0','The User identifies a unique user in the system. This could be an internal user or a business partner contact','User/Contact','Y',100,TO_TIMESTAMP('2012-08-22 17:24:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:10','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
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=200328 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)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200329,'U','N','N','N','N',22,'N',19,'Y','N',143,'N','Y','b2130167-7717-4e78-b0a9-f4bb18e13de4','N','Y','N','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',100,TO_TIMESTAMP('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:11 PM SGT
-- Move the Menu to be a Portlet
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=200329 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)
;
-- Aug 22, 2012 5:24:12 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200330,'U','N','N','N',0,'N',14,'N',11,'N','N',53709,'N','Y','21266064-7289-4578-a943-d036513c89f9','N','Y','N','ColumnNo','Dashboard content column number','1','Dashboard content column number, not used by the swing client at the moment.','Column No','Y',100,TO_TIMESTAMP('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:12 PM SGT
-- Move the Menu to be a Portlet
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=200330 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)
;
-- Aug 22, 2012 5:24:13 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200331,'U','Y','N','N','N',7,'N',16,'Y','N',245,'N','Y','54aa33eb-11c3-4dd0-a49e-68a820b2fa8f','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2012-08-22 17:24:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:12','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:13 PM SGT
-- Move the Menu to be a Portlet
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=200331 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)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200332,'U',110,'Y','N','N','N',10,'N',18,'Y','N',246,'N','Y','08ae2c42-fe47-47b2-a990-aafd60ece4bc','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2012-08-22 17:24:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:13','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
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=200332 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)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200333,'U','N','Y','N','N',255,'Y',10,'Y','N',275,'N','Y','b2af550f-29eb-4a59-b3b5-73a95901072e','N','Y','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_TIMESTAMP('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:14 PM SGT
-- Move the Menu to be a Portlet
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=200333 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)
;
-- Aug 22, 2012 5:24:15 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.000000000000,200013,200334,'U',53316,'N','N','N',0,'N',1,'N',17,'N','N',53895,'N','Y','73f3c7f5-ed37-4f88-afe1-6e2de5a52083','N','Y','N','GoalDisplay','Type of goal display on dashboard','T','Display goal on dashboard as html table or graph.','Goal Display','Y',100,TO_TIMESTAMP('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:14','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:15 PM SGT
-- Move the Menu to be a Portlet
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=200334 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)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200335,'U','N','N','N','N','N',36,'Y','N',51005,'N','Y','0a89bacd-d3ba-41ad-8734-5f40eb2f0d70','N','Y','N','HTML','HTML','Y',100,TO_TIMESTAMP('2012-08-22 17:24:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:15','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
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=200335 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)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200336,'U','Y','N','N','N',1,'N',20,'Y','N',348,'N','Y','bd00cfcd-649f-4d7e-9952-464ddd47a214','N','Y','N','IsActive','The record is active in the system','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.','Active','N',100,TO_TIMESTAMP('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:16 PM SGT
-- Move the Menu to be a Portlet
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=200336 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)
;
-- Aug 22, 2012 5:24:17 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200337,'U','Y','N','N',0,'N',1,'N',20,'N','N',53336,'N','Y','c1b56cc4-2b4f-440d-90f6-0101e10f95fc','N','Y','N','IsCollapsedByDefault','Flag to set the initial state of collapsible field group.','N','Collapsed By Default','Y',100,TO_TIMESTAMP('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:16','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:17 PM SGT
-- Move the Menu to be a Portlet
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=200337 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)
;
-- Aug 22, 2012 5:24:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200338,'U','Y','N','N',0,'N',1,'N',20,'N','N',53715,'N','Y','95747f07-876e-4b73-afd8-0f3e89681e47','N','Y','N','IsCollapsible','Flag to indicate the state of the dashboard panel','Y','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)','Collapsible','Y',100,TO_TIMESTAMP('2012-08-22 17:24:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:17','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:18 PM SGT
-- Move the Menu to be a Portlet
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=200338 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)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200339,'U','Y','N','N',0,'N',1,'N',20,'N','N',200075,'N','Y','ce4c22dd-129d-4a4c-b4e3-80ac8f2558f0','N','Y','N','IsEmbedReportContent','Embed report content into dashboard','N','Embed Report Content','Y',100,TO_TIMESTAMP('2012-08-22 17:24:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:18','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
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=200339 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)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200340,'U','Y','N','N',0,'N',1,'N',20,'N','N',200074,'N','Y','ece566cd-05a3-4c78-80cb-b72d37fd97bf','N','Y','N','IsShowInDashboard','Show the dashlet in the dashboard','''Y''','Show in Dashboard','Y',100,TO_TIMESTAMP('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:19 PM SGT
-- Move the Menu to be a Portlet
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=200340 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)
;
-- Aug 22, 2012 5:24:20 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200341,'U','N','N','N','N',22,'N',22,'Y','N',439,'N','Y','b6b75e0a-4a17-4120-81eb-954c040f91b6','N','Y','N','Line','Unique line for this document','Indicates the unique line for a document. It will also control the display order of the lines within a document.','Line No','Y',100,TO_TIMESTAMP('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:20 PM SGT
-- Move the Menu to be a Portlet
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=200341 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)
;
-- Aug 22, 2012 5:24:21 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200342,'U','Y','Y','Y',1,'N',120,'Y',10,'Y','N',469,'N','Y','e194e552-2d9e-462d-a764-c4291635f73e','N','Y','N','Name','Alphanumeric identifier of the entity','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.','Name','Y',100,TO_TIMESTAMP('2012-08-22 17:24:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:20','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:21 PM SGT
-- Move the Menu to be a Portlet
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=200342 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)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('PA_DashboardPreference_ID',200097,'U','Dashboard Preference','Dashboard Preference','5e8c3a0b-3d43-416e-9101-c85fb17bf717',0,TO_TIMESTAMP('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200097 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200343,'U','Y','N','N','N',10,'N',13,'Y','Y',200097,'N','Y','6c0f49bf-fcfe-43ca-b2bf-ea89f23b5d4a','N','N','N','PA_DashboardPreference_ID','Dashboard Preference','N',100,TO_TIMESTAMP('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:21','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:22 PM SGT
-- Move the Menu to be a Portlet
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=200343 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)
;
-- Aug 22, 2012 5:24:23 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200013,200344,'U','N','N','N','N',36,'N',10,'N','N',55058,'N','Y','b268bb72-324c-4c88-bb92-c12e519e0299','N','Y','N','PA_DashboardContent_UU','PA_DashboardContent_UU','N',100,TO_TIMESTAMP('2012-08-22 17:24:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:22','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:23 PM SGT
-- Move the Menu to be a Portlet
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=200344 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)
;
-- Aug 22, 2012 5:24:24 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200345,'U','N','N','N','N',22,'N',19,'Y','N',1594,'N','Y','09ecd680-ff20-4e63-aa11-75514bab82c6','N','Y','N','PA_Goal_ID','Performance Goal','The Performance Goal indicates what this users performance will be measured against.','Goal','Y',100,TO_TIMESTAMP('2012-08-22 17:24:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:23','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:24 PM SGT
-- Move the Menu to be a Portlet
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=200345 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)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200346,'U','N','N','N',0,'N',2000,'N',10,'N','N',200076,'N','Y','56ba0131-e162-43ab-abb7-dd979d3f7050','N','Y','N','ProcessParameters','Comma separated process parameter list','A list of name value pair process parameter separated by comma','Process Parameters','Y',100,TO_TIMESTAMP('2012-08-22 17:24:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:24','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
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=200346 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)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200347,'U','Y','N','N','N',7,'N',16,'Y','N',607,'N','Y','b837c94e-ed52-440e-99b5-5497b8dc97df','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:25 PM SGT
-- Move the Menu to be a Portlet
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=200347 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)
;
-- Aug 22, 2012 5:24:26 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200348,'U',110,'Y','N','N','N',10,'N',18,'Y','N',608,'N','Y','91488e3a-d7f2-4d34-bcb2-60ce40dfcc0b','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:25','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:26 PM SGT
-- Move the Menu to be a Portlet
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=200348 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)
;
-- Aug 22, 2012 5:24:27 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200349,'U','N','N','N',0,'N',255,'N',10,'N','N',53710,'N','Y','53db2cfd-ae14-41c8-8e41-3e76d913a01a','N','Y','N','ZulFilePath','Absolute path to zul file','Absolute path to zul file that is use to generate dashboard content','ZUL File Path','Y',100,TO_TIMESTAMP('2012-08-22 17:24:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:24:26','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:24:27 PM SGT
-- Move the Menu to be a Portlet
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=200349 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)
;
-- Aug 22, 2012 5:24:43 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200326
;
-- Aug 22, 2012 5:24:43 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200326
;
-- Aug 22, 2012 5:24:47 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200329
;
-- Aug 22, 2012 5:24:47 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200329
;
-- Aug 22, 2012 5:24:53 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200333
;
-- Aug 22, 2012 5:24:53 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200333
;
-- Aug 22, 2012 5:24:56 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200334
;
-- Aug 22, 2012 5:24:56 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200334
;
-- Aug 22, 2012 5:24:59 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200335
;
-- Aug 22, 2012 5:24:59 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200335
;
-- Aug 22, 2012 5:25:17 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200338
;
-- Aug 22, 2012 5:25:17 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200338
;
-- Aug 22, 2012 5:25:20 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200339
;
-- Aug 22, 2012 5:25:20 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200339
;
-- Aug 22, 2012 5:25:27 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200342
;
-- Aug 22, 2012 5:25:27 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200342
;
-- Aug 22, 2012 5:25:32 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200344
;
-- Aug 22, 2012 5:25:32 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200344
;
-- Aug 22, 2012 5:25:35 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200345
;
-- Aug 22, 2012 5:25:35 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200345
;
-- Aug 22, 2012 5:25:38 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200346
;
-- Aug 22, 2012 5:25:38 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200346
;
-- Aug 22, 2012 5:25:41 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200349
;
-- Aug 22, 2012 5:25:41 PM SGT
-- Move the Menu to be a Portlet
DELETE FROM AD_Column WHERE AD_Column_ID=200349
;
-- Aug 22, 2012 5:26:08 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200013,200350,'U','Y','N','N',0,'N',10,'N',19,'N','N',51006,'N','Y','79fe7ad2-2a7e-43f2-b656-01bc294a6b89','N','Y','N','PA_DashboardContent_ID','Dashboard Content','Y',100,TO_TIMESTAMP('2012-08-22 17:26:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-22 17:26:07','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 22, 2012 5:26:08 PM SGT
-- Move the Menu to be a Portlet
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=200350 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)
;
-- Aug 22, 2012 5:26:20 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2012-08-22 17:26:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200327
;
-- Aug 22, 2012 5:26:23 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2012-08-22 17:26:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200328
;
-- Aug 22, 2012 5:26:53 PM SGT
-- Move the Menu to be a Portlet
CREATE TABLE PA_DashboardPreference (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, AD_Role_ID NUMERIC(10) DEFAULT 0 NOT NULL, AD_User_ID NUMERIC(10) DEFAULT 0 NOT NULL, ColumnNo NUMERIC(10) DEFAULT 1, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, IsCollapsedByDefault CHAR(1) DEFAULT 'N' CHECK (IsCollapsedByDefault IN ('Y','N')) NOT NULL, IsShowInDashboard CHAR(1) DEFAULT 'Y' CHECK (IsShowInDashboard IN ('Y','N')) NOT NULL, Line NUMERIC DEFAULT NULL , PA_DashboardContent_ID NUMERIC(10) NOT NULL, PA_DashboardPreference_ID NUMERIC(10) NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT PA_DashboardPreference_Key PRIMARY KEY (PA_DashboardPreference_ID))
;
-- Aug 22, 2012 5:27:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Window (WindowType,IsSOTrx,IsDefault,IsBetaFunctionality,EntityType,Name,AD_Window_ID,Processing,AD_Window_UU,Created,Updated,AD_Org_ID,AD_Client_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('M','Y','N','N','U','Dashboard Preference',200006,'N','b40fb952-f507-43c0-a736-4027a729cf95',TO_TIMESTAMP('2012-08-22 17:27:17','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-22 17:27:17','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100)
;
-- Aug 22, 2012 5:27:18 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Window_Trl_UU ) SELECT l.AD_Language,t.AD_Window_ID, 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_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200006 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- Aug 22, 2012 5:27:49 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,ImportFields,HasTree,IsReadOnly,IsInfoTab,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Processing,IsActive) VALUES ('N',200006,10,'N','N',200013,'N','N','N','N','Y','N',0,'8913e23b-efab-4d76-8c16-cf020ad5f47b','U','Preference',200011,0,0,TO_TIMESTAMP('2012-08-22 17:27:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-22 17:27:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y')
;
-- Aug 22, 2012 5:27:49 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,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.Help,t.CommitWarning,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=200011 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)
;
-- Aug 22, 2012 5:27:56 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200336,'Y',200298,'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.','U','The record is active in the system','Active','N','Y','60efaf22-47aa-458e-844d-1795f0ae7d51',100,0,TO_TIMESTAMP('2012-08-22 17:27:55','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:55','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:56 PM SGT
-- Move the Menu to be a Portlet
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=200298 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)
;
-- Aug 22, 2012 5:27:57 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200324,'Y',200299,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','U','Client/Tenant for this installation.','Client','N','Y','4c8e0f92-8621-404c-b74e-a7bbe371dfba',100,0,TO_TIMESTAMP('2012-08-22 17:27:56','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:56','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:57 PM SGT
-- Move the Menu to be a Portlet
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=200299 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)
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200337,'Y',200300,'N','U','Flag to set the initial state of collapsible field group.','Collapsed By Default','N','Y','2de9e3c6-79c7-4535-933a-676e3088b846',100,0,TO_TIMESTAMP('2012-08-22 17:27:57','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:57','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
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=200300 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)
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,14,'N','N',200330,'Y',200301,'N','Dashboard content column number, not used by the swing client at the moment.','U','Dashboard content column number','Column No','N','Y','6046d04b-ce13-46c5-93d3-ace1ad5cc3b6',100,0,TO_TIMESTAMP('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:58 PM SGT
-- Move the Menu to be a Portlet
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=200301 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)
;
-- Aug 22, 2012 5:27:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200350,'Y',200302,'N','U','Dashboard Content','N','Y','54cfd09f-cdeb-4713-b18a-260046407687',100,0,TO_TIMESTAMP('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:58','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:27:59 PM SGT
-- Move the Menu to be a Portlet
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=200302 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)
;
-- Aug 22, 2012 5:28:00 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid) VALUES ('N',200011,10,'N','N',200343,'Y',200303,'N','U','Dashboard Preference','N','N','1261ce0f-507d-4d5f-a2ef-0f19fa852cc5',100,0,TO_TIMESTAMP('2012-08-22 17:27:59','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:27:59','YYYY-MM-DD HH24:MI:SS'),'Y','N')
;
-- Aug 22, 2012 5:28:00 PM SGT
-- Move the Menu to be a Portlet
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=200303 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)
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,22,'N','N',200341,'Y',200304,'N','Indicates the unique line for a document. It will also control the display order of the lines within a document.','U','Unique line for this document','Line No','N','Y','110508e7-f036-4756-9b1c-f25534679786',100,0,TO_TIMESTAMP('2012-08-22 17:28:00','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:28:00','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
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=200304 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)
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200325,'Y',200305,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','U','Organizational entity within client','Organization','N','Y','81c96d66-b03c-4297-ae6c-013e12115406',100,0,TO_TIMESTAMP('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:01 PM SGT
-- Move the Menu to be a Portlet
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=200305 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)
;
-- Aug 22, 2012 5:28:02 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200327,'Y',200306,'N','The Role determines security and access a user who has this Role will have in the System.','U','Responsibility Role','Role','N','Y','9123affc-baac-4b31-b9aa-cf6b2031d042',100,0,TO_TIMESTAMP('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:28:01','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:02 PM SGT
-- Move the Menu to be a Portlet
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=200306 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)
;
-- Aug 22, 2012 5:28:03 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,1,'N','N',200340,'Y',200307,'N','U','Show the dashlet in the dashboard','Show in Dashboard','N','Y','45eb1a7e-6531-4ca6-8c98-fd8de091b9d0',100,0,TO_TIMESTAMP('2012-08-22 17:28:02','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:28:02','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:03 PM SGT
-- Move the Menu to be a Portlet
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=200307 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)
;
-- Aug 22, 2012 5:28:04 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200011,10,'N','N',200328,'Y',200308,'N','The User identifies a unique user in the system. This could be an internal user or a business partner contact','U','User within the system - Internal or Business Partner Contact','User/Contact','N','Y','cfbb0b1a-eaac-4d94-aca0-70c47423973c',100,0,TO_TIMESTAMP('2012-08-22 17:28:03','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-08-22 17:28:03','YYYY-MM-DD HH24:MI:SS'),'Y')
;
-- Aug 22, 2012 5:28:04 PM SGT
-- Move the Menu to be a Portlet
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=200308 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)
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:28:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:29:32 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:29:50 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2012-08-22 17:29:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:29:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2012-08-22 17:29:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:30:15 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2012-08-22 17:30:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,"action",AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200006,200010,'N','N','N','D','Y','Dashboard Preference','W','b8b799ed-2f7b-458c-9764-b715dc43dde2','Y',0,100,TO_TIMESTAMP('2012-08-22 17:30:59','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2012-08-22 17:30:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, 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_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200010 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Aug 22, 2012 5:30:59 PM SGT
-- Move the Menu to be a Portlet
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200010, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200010)
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=441
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=149
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=50010
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200010
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=171
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=437
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=240
;
-- Aug 22, 2012 5:31:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_TreeNodeMM SET Parent_ID=175, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=361
;
-- Aug 22, 2012 5:31:25 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Window SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200006
;
-- Aug 22, 2012 5:31:35 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Tab SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200011
;
-- Aug 22, 2012 5:31:44 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200299
;
-- Aug 22, 2012 5:31:48 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200305
;
-- Aug 22, 2012 5:31:52 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200308
;
-- Aug 22, 2012 5:31:55 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200306
;
-- Aug 22, 2012 5:31:58 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:31:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200302
;
-- Aug 22, 2012 5:32:02 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200298
;
-- Aug 22, 2012 5:32:05 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200301
;
-- Aug 22, 2012 5:32:09 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200304
;
-- Aug 22, 2012 5:32:12 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200300
;
-- Aug 22, 2012 5:32:15 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200307
;
-- Aug 22, 2012 5:32:35 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Table SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200013
;
-- Aug 22, 2012 5:32:44 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200324
;
-- Aug 22, 2012 5:32:47 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200325
;
-- Aug 22, 2012 5:32:50 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200327
;
-- Aug 22, 2012 5:32:53 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200328
;
-- Aug 22, 2012 5:32:56 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:32:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200330
;
-- Aug 22, 2012 5:33:00 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200331
;
-- Aug 22, 2012 5:33:03 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200332
;
-- Aug 22, 2012 5:33:07 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200336
;
-- Aug 22, 2012 5:33:10 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200337
;
-- Aug 22, 2012 5:33:13 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200340
;
-- Aug 22, 2012 5:33:16 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200341
;
-- Aug 22, 2012 5:33:20 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200350
;
-- Aug 22, 2012 5:33:23 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D', IsUpdateable='N',Updated=TO_TIMESTAMP('2012-08-22 17:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200343
;
-- Aug 22, 2012 5:33:26 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200347
;
-- Aug 22, 2012 5:33:30 PM SGT
-- Move the Menu to be a Portlet
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2012-08-22 17:33:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200348
;
UPDATE AD_System
SET LastMigrationScriptApplied='888_IDEMPIERE-357_MenuPortlet.sql'
WHERE LastMigrationScriptApplied<'888_IDEMPIERE-357_MenuPortlet.sql'
OR LastMigrationScriptApplied IS NULL
;

View File

@ -545,7 +545,7 @@ public final class Adempiere
} // startup } // startup
private static void createThreadPool() { private static void createThreadPool() {
int min = 20; int min = 10;
int max = 200; int max = 200;
Properties properties = Ini.getProperties(); Properties properties = Ini.getProperties();
String maxSize = properties.getProperty("MaxThreadPoolSize"); String maxSize = properties.getProperty("MaxThreadPoolSize");
@ -567,10 +567,11 @@ public final class Adempiere
max = 200; max = 200;
} }
if (min < 0) { if (min < 0) {
min = 20; min = 10;
} }
// start thread pool // start thread pool
threadPoolExecutor = new ThreadPoolExecutor(min, max, 0, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>()); threadPoolExecutor = new ThreadPoolExecutor(min, max, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>());
threadPoolExecutor.allowCoreThreadTimeOut(true);
} }
/** /**

View File

@ -0,0 +1,211 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* 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. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for PA_DashboardPreference
* @author Adempiere (generated)
* @version Release 3.6.0LTS
*/
public interface I_PA_DashboardPreference
{
/** TableName=PA_DashboardPreference */
public static final String Table_Name = "PA_DashboardPreference";
/** AD_Table_ID=200013 */
public static final int Table_ID = 200013;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 6 - System - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(6);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name AD_Role_ID */
public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID";
/** Set Role.
* Responsibility Role
*/
public void setAD_Role_ID (int AD_Role_ID);
/** Get Role.
* Responsibility Role
*/
public int getAD_Role_ID();
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException;
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
/** Column name ColumnNo */
public static final String COLUMNNAME_ColumnNo = "ColumnNo";
/** Set Column No.
* Dashboard content column number
*/
public void setColumnNo (int ColumnNo);
/** Get Column No.
* Dashboard content column number
*/
public int getColumnNo();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsCollapsedByDefault */
public static final String COLUMNNAME_IsCollapsedByDefault = "IsCollapsedByDefault";
/** Set Collapsed By Default.
* Flag to set the initial state of collapsible field group.
*/
public void setIsCollapsedByDefault (boolean IsCollapsedByDefault);
/** Get Collapsed By Default.
* Flag to set the initial state of collapsible field group.
*/
public boolean isCollapsedByDefault();
/** Column name IsShowInDashboard */
public static final String COLUMNNAME_IsShowInDashboard = "IsShowInDashboard";
/** Set Show in Dashboard.
* Show the dashlet in the dashboard
*/
public void setIsShowInDashboard (boolean IsShowInDashboard);
/** Get Show in Dashboard.
* Show the dashlet in the dashboard
*/
public boolean isShowInDashboard();
/** Column name Line */
public static final String COLUMNNAME_Line = "Line";
/** Set Line No.
* Unique line for this document
*/
public void setLine (BigDecimal Line);
/** Get Line No.
* Unique line for this document
*/
public BigDecimal getLine();
/** Column name PA_DashboardContent_ID */
public static final String COLUMNNAME_PA_DashboardContent_ID = "PA_DashboardContent_ID";
/** Set Dashboard Content */
public void setPA_DashboardContent_ID (int PA_DashboardContent_ID);
/** Get Dashboard Content */
public int getPA_DashboardContent_ID();
public org.compiere.model.I_PA_DashboardContent getPA_DashboardContent() throws RuntimeException;
/** Column name PA_DashboardPreference_ID */
public static final String COLUMNNAME_PA_DashboardPreference_ID = "PA_DashboardPreference_ID";
/** Set Dashboard Preference */
public void setPA_DashboardPreference_ID (int PA_DashboardPreference_ID);
/** Get Dashboard Preference */
public int getPA_DashboardPreference_ID();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
}

View File

@ -21,24 +21,29 @@ public class MDashboardContent extends X_PA_DashboardContent
*/ */
private static final long serialVersionUID = 5425307033413466516L; private static final long serialVersionUID = 5425307033413466516L;
public static int getForSessionColumnCount(boolean isShowInDashboard, int AD_User_ID) public static int getForSessionColumnCount(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{ {
int noOfCols = getForSessionQuery(isShowInDashboard, AD_User_ID).aggregate("DISTINCT "+COLUMNNAME_ColumnNo, Query.AGGREGATE_COUNT, Integer.class); int noOfCols = getForSessionQuery(isShowInDashboard, AD_User_ID, AD_Role_ID).aggregate("DISTINCT "+COLUMNNAME_ColumnNo, Query.AGGREGATE_COUNT, Integer.class);
return noOfCols; return noOfCols;
} }
public static MDashboardContent[] getForSession(boolean isShowInDashboard, int AD_User_ID) public static MDashboardContent[] getForSession(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{ {
List<MDashboardContent> list = getForSessionQuery(isShowInDashboard, AD_User_ID).list(); List<MDashboardContent> list = getForSessionQuery(isShowInDashboard, AD_User_ID, AD_Role_ID).list();
return list.toArray(new MDashboardContent[list.size()]); return list.toArray(new MDashboardContent[list.size()]);
} }
public static Query getForSessionQuery(boolean isShowInDashboard, int AD_User_ID) public static Query getForSessionQuery(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{ {
Properties ctx = Env.getCtx(); Properties ctx = Env.getCtx();
String whereClause = COLUMNNAME_IsShowInDashboard+"=? AND (" String whereClause = COLUMNNAME_IsShowInDashboard+"=?";
+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+" IN (0,?))";
if (AD_Role_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+"=?)";
else
whereClause += " AND "+COLUMNNAME_AD_Role_ID+"=?";
if (AD_User_ID == 0) if (AD_User_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)"; whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)";
else else
@ -46,7 +51,7 @@ public class MDashboardContent extends X_PA_DashboardContent
List<Object> parameters = new ArrayList<Object>(); List<Object> parameters = new ArrayList<Object>();
parameters.add(isShowInDashboard); parameters.add(isShowInDashboard);
parameters.add(Env.getAD_Role_ID(ctx)); parameters.add(AD_Role_ID);
parameters.add(AD_User_ID); parameters.add(AD_User_ID);
return new Query(ctx, Table_Name, whereClause, null) return new Query(ctx, Table_Name, whereClause, null)
@ -56,24 +61,30 @@ public class MDashboardContent extends X_PA_DashboardContent
.setOrderBy(COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+COLUMNNAME_Line); .setOrderBy(COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+COLUMNNAME_Line);
} }
public static MDashboardContent[] getForSession(int AD_User_ID) public static MDashboardContent[] getForSession(int AD_User_ID, int AD_Role_ID)
{ {
List<MDashboardContent> list = getForSessionQuery(AD_User_ID).list(); List<MDashboardContent> list = getForSessionQuery(AD_User_ID, AD_Role_ID).list();
return list.toArray(new MDashboardContent[list.size()]); return list.toArray(new MDashboardContent[list.size()]);
} }
public static Query getForSessionQuery(int AD_User_ID) public static Query getForSessionQuery(int AD_User_ID, int AD_Role_ID)
{ {
Properties ctx = Env.getCtx(); Properties ctx = Env.getCtx();
String whereClause = "("+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+" IN (0,?))"; String whereClause = "";
if (AD_Role_ID == 0)
whereClause += "("+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+"=?)";
else
whereClause += COLUMNNAME_AD_Role_ID+"=?";
if (AD_User_ID == 0) if (AD_User_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)"; whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)";
else else
whereClause += " AND "+COLUMNNAME_AD_User_ID+"=?"; whereClause += " AND "+COLUMNNAME_AD_User_ID+"=?";
List<Object> parameters = new ArrayList<Object>(); List<Object> parameters = new ArrayList<Object>();
parameters.add(Env.getAD_Role_ID(ctx)); parameters.add(AD_Role_ID);
parameters.add(AD_User_ID); parameters.add(AD_User_ID);
return new Query(ctx, Table_Name, whereClause, null) return new Query(ctx, Table_Name, whereClause, null)

View File

@ -0,0 +1,118 @@
/******************************************************************************
* Copyright (C) 2012 Elaine Tan *
* 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.ArrayList;
import java.util.List;
import java.util.Properties;
import org.compiere.util.Env;
/**
* Dashboard preference
* @author Elaine
* @date August 22, 2012
*/
public class MDashboardPreference extends X_PA_DashboardPreference
{
/**
*
*/
private static final long serialVersionUID = 7568476952229922042L;
public static int getForSessionColumnCount(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{
int noOfCols = getForSessionQuery(isShowInDashboard, AD_User_ID, AD_Role_ID).aggregate("DISTINCT "+COLUMNNAME_ColumnNo, Query.AGGREGATE_COUNT, Integer.class);
return noOfCols;
}
public static MDashboardPreference[] getForSession(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{
List<MDashboardPreference> list = getForSessionQuery(isShowInDashboard, AD_User_ID, AD_Role_ID).list();
return list.toArray(new MDashboardPreference[list.size()]);
}
public static Query getForSessionQuery(boolean isShowInDashboard, int AD_User_ID, int AD_Role_ID)
{
Properties ctx = Env.getCtx();
String whereClause = COLUMNNAME_IsShowInDashboard+"=?";
if (AD_Role_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+"=?)";
else
whereClause += " AND "+COLUMNNAME_AD_Role_ID+"=?";
if (AD_User_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)";
else
whereClause += " AND "+COLUMNNAME_AD_User_ID+"=?";
List<Object> parameters = new ArrayList<Object>();
parameters.add(isShowInDashboard);
parameters.add(AD_Role_ID);
parameters.add(AD_User_ID);
return new Query(ctx, Table_Name, whereClause, null)
.setParameters(parameters)
.setOnlyActiveRecords(true)
.setApplyAccessFilter(true, false)
.setOrderBy(COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+COLUMNNAME_Line);
}
public static MDashboardPreference[] getForSession(int AD_User_ID, int AD_Role_ID)
{
List<MDashboardPreference> list = getForSessionQuery(AD_User_ID, AD_Role_ID).list();
return list.toArray(new MDashboardPreference[list.size()]);
}
public static Query getForSessionQuery(int AD_User_ID, int AD_Role_ID)
{
Properties ctx = Env.getCtx();
String whereClause = "";
if (AD_Role_ID == 0)
whereClause += "("+COLUMNNAME_AD_Role_ID+" IS NULL OR "+COLUMNNAME_AD_Role_ID+"=?)";
else
whereClause += COLUMNNAME_AD_Role_ID+"=?";
if (AD_User_ID == 0)
whereClause += " AND ("+COLUMNNAME_AD_User_ID+" IS NULL OR "+COLUMNNAME_AD_User_ID+"=?)";
else
whereClause += " AND "+COLUMNNAME_AD_User_ID+"=?";
List<Object> parameters = new ArrayList<Object>();
parameters.add(AD_Role_ID);
parameters.add(AD_User_ID);
return new Query(ctx, Table_Name, whereClause, null)
.setParameters(parameters)
.setOnlyActiveRecords(true)
.setApplyAccessFilter(true, false)
.setOrderBy(COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+COLUMNNAME_Line);
}
public MDashboardPreference (Properties ctx, int PA_DashboardPreference_ID, String trxName)
{
super (ctx, PA_DashboardPreference_ID, trxName);
}
public MDashboardPreference (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
}

View File

@ -0,0 +1,271 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* 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. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.Env;
/** Generated Model for PA_DashboardPreference
* @author Adempiere (generated)
* @version Release 3.6.0LTS - $Id$ */
public class X_PA_DashboardPreference extends PO implements I_PA_DashboardPreference, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20120822L;
/** Standard Constructor */
public X_PA_DashboardPreference (Properties ctx, int PA_DashboardPreference_ID, String trxName)
{
super (ctx, PA_DashboardPreference_ID, trxName);
/** if (PA_DashboardPreference_ID == 0)
{
setAD_Role_ID (0);
// 0
setAD_User_ID (0);
// 0
setIsCollapsedByDefault (false);
// N
setIsShowInDashboard (true);
// 'Y'
setPA_DashboardContent_ID (0);
setPA_DashboardPreference_ID (0);
} */
}
/** Load Constructor */
public X_PA_DashboardPreference (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 6 - System - Client
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_PA_DashboardPreference[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException
{
return (org.compiere.model.I_AD_Role)MTable.get(getCtx(), org.compiere.model.I_AD_Role.Table_Name)
.getPO(getAD_Role_ID(), get_TrxName()); }
/** Set Role.
@param AD_Role_ID
Responsibility Role
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
}
/** Get Role.
@return Responsibility Role
*/
public int getAD_Role_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
{
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
.getPO(getAD_User_ID(), get_TrxName()); }
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Column No.
@param ColumnNo
Dashboard content column number
*/
public void setColumnNo (int ColumnNo)
{
set_Value (COLUMNNAME_ColumnNo, Integer.valueOf(ColumnNo));
}
/** Get Column No.
@return Dashboard content column number
*/
public int getColumnNo ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ColumnNo);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Collapsed By Default.
@param IsCollapsedByDefault
Flag to set the initial state of collapsible field group.
*/
public void setIsCollapsedByDefault (boolean IsCollapsedByDefault)
{
set_Value (COLUMNNAME_IsCollapsedByDefault, Boolean.valueOf(IsCollapsedByDefault));
}
/** Get Collapsed By Default.
@return Flag to set the initial state of collapsible field group.
*/
public boolean isCollapsedByDefault ()
{
Object oo = get_Value(COLUMNNAME_IsCollapsedByDefault);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Show in Dashboard.
@param IsShowInDashboard
Show the dashlet in the dashboard
*/
public void setIsShowInDashboard (boolean IsShowInDashboard)
{
set_Value (COLUMNNAME_IsShowInDashboard, Boolean.valueOf(IsShowInDashboard));
}
/** Get Show in Dashboard.
@return Show the dashlet in the dashboard
*/
public boolean isShowInDashboard ()
{
Object oo = get_Value(COLUMNNAME_IsShowInDashboard);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Line No.
@param Line
Unique line for this document
*/
public void setLine (BigDecimal Line)
{
set_Value (COLUMNNAME_Line, Line);
}
/** Get Line No.
@return Unique line for this document
*/
public BigDecimal getLine ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Line);
if (bd == null)
return Env.ZERO;
return bd;
}
public org.compiere.model.I_PA_DashboardContent getPA_DashboardContent() throws RuntimeException
{
return (org.compiere.model.I_PA_DashboardContent)MTable.get(getCtx(), org.compiere.model.I_PA_DashboardContent.Table_Name)
.getPO(getPA_DashboardContent_ID(), get_TrxName()); }
/** Set Dashboard Content.
@param PA_DashboardContent_ID Dashboard Content */
public void setPA_DashboardContent_ID (int PA_DashboardContent_ID)
{
if (PA_DashboardContent_ID < 1)
set_Value (COLUMNNAME_PA_DashboardContent_ID, null);
else
set_Value (COLUMNNAME_PA_DashboardContent_ID, Integer.valueOf(PA_DashboardContent_ID));
}
/** Get Dashboard Content.
@return Dashboard Content */
public int getPA_DashboardContent_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_PA_DashboardContent_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Dashboard Preference.
@param PA_DashboardPreference_ID Dashboard Preference */
public void setPA_DashboardPreference_ID (int PA_DashboardPreference_ID)
{
if (PA_DashboardPreference_ID < 1)
set_ValueNoCheck (COLUMNNAME_PA_DashboardPreference_ID, null);
else
set_ValueNoCheck (COLUMNNAME_PA_DashboardPreference_ID, Integer.valueOf(PA_DashboardPreference_ID));
}
/** Get Dashboard Preference.
@return Dashboard Preference */
public int getPA_DashboardPreference_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_PA_DashboardPreference_ID);
if (ii == null)
return 0;
return ii.intValue();
}
}

View File

@ -33,6 +33,7 @@ import org.compiere.apps.AEnv;
import org.compiere.apps.AWindow; import org.compiere.apps.AWindow;
import org.compiere.model.MAchievement; import org.compiere.model.MAchievement;
import org.compiere.model.MDashboardContent; import org.compiere.model.MDashboardContent;
import org.compiere.model.MDashboardPreference;
import org.compiere.model.MGoal; import org.compiere.model.MGoal;
import org.compiere.model.MMeasureCalc; import org.compiere.model.MMeasureCalc;
import org.compiere.model.MProjectType; import org.compiere.model.MProjectType;
@ -144,20 +145,22 @@ public class HtmlDashboard extends JPanel implements MouseListener,
try try
{ {
int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
MDashboardContent[] dps = MDashboardContent.getForSession(true, AD_User_ID); // based on user int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx());
MDashboardPreference[] dps = MDashboardPreference.getForSession(AD_User_ID, AD_Role_ID);
if (dps.length == 0) if (dps.length == 0)
{ createDashboardPreference();
AD_User_ID = 0;
dps = MDashboardContent.getForSession(true, AD_User_ID); // based on client
}
for (final MDashboardContent dp : dps) dps = MDashboardPreference.getForSession(true, AD_User_ID, AD_Role_ID); // based on user and role
for (final MDashboardPreference dp : dps)
{ {
if (!Util.isEmpty(dp.getZulFilePath(), true)) MDashboardContent dc = new MDashboardContent(dp.getCtx(), dp.getPA_DashboardContent_ID(), dp.get_TrxName());
if (!Util.isEmpty(dc.getZulFilePath(), true))
continue; continue;
// //
appendToHome = dp.getHTML(); appendToHome = dc.getHTML();
String descriptionTrl = dp.get_Translation(MDashboardContent.COLUMNNAME_Description); String descriptionTrl = dp.get_Translation(MDashboardContent.COLUMNNAME_Description);
if (appendToHome != null) { if (appendToHome != null) {
if (descriptionTrl != null) if (descriptionTrl != null)
@ -165,17 +168,17 @@ public class HtmlDashboard extends JPanel implements MouseListener,
result += stripHtml(appendToHome, false) + "<br>\n"; result += stripHtml(appendToHome, false) + "<br>\n";
} }
if (dp.getAD_Menu_ID() > 0) { if (dc.getAD_Menu_ID() > 0) {
result += "<a class=\"hrefNode\" href=\"http:///window/node#" result += "<a class=\"hrefNode\" href=\"http:///window/node#"
+ String.valueOf( dp.getAD_Window_ID() // "AD_MENU_ID") fcsku 3.7.07 + String.valueOf( dc.getAD_Window_ID() // "AD_MENU_ID") fcsku 3.7.07
+ "\">" + "\">"
+ descriptionTrl + descriptionTrl
+ "</a><br>\n"); + "</a><br>\n");
} }
result += "<br>\n"; result += "<br>\n";
//result += "table id: " + rs.getInt("AD_TABLE_ID"); //result += "table id: " + rs.getInt("AD_TABLE_ID");
if (dp.getPA_Goal_ID() > 0) if (dc.getPA_Goal_ID() > 0)
result += goalsDetail(dp.getPA_Goal_ID()); result += goalsDetail(dc.getPA_Goal_ID());
} }
} }
catch (Exception e) catch (Exception e)
@ -193,7 +196,29 @@ public class HtmlDashboard extends JPanel implements MouseListener,
} }
return result; return result;
} }
private void createDashboardPreference()
{
if (Env.getAD_User_ID(Env.getCtx()) == 0 && Env.getAD_Role_ID(Env.getCtx()) == 0)
return;
MDashboardContent[] dcs = MDashboardContent.getForSession(0, 0);
for (MDashboardContent dc : dcs)
{
MDashboardPreference preference = new MDashboardPreference(Env.getCtx(), 0, null);
preference.setAD_Org_ID(Env.getAD_Org_ID(Env.getCtx()));
preference.setAD_Role_ID(Env.getAD_Role_ID(Env.getCtx()));
preference.setAD_User_ID(Env.getAD_User_ID(Env.getCtx()));
preference.setColumnNo(dc.getColumnNo());
preference.setIsCollapsedByDefault(dc.isCollapsedByDefault());
preference.setIsShowInDashboard(dc.isShowInDashboard());
preference.setLine(dc.getLine());
preference.setPA_DashboardContent_ID(dc.getPA_DashboardContent_ID());
if (!preference.save())
log.log(Level.SEVERE, "Failed to create dashboard preference " + preference.toString());
}
}
ArrayList<MQuery> queryZoom = null; //new ArrayList<MQuery>(); ArrayList<MQuery> queryZoom = null; //new ArrayList<MQuery>();

View File

@ -344,18 +344,34 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
*/ */
public void logout() public void logout()
{ {
appDesktop.logout(); Session session = logout0();
Executions.getCurrent().getDesktop().getSession().getAttributes().clear();
//clear context, invalidate session
AEnv.logout(); Env.getCtx().clear();
session.invalidate();
SessionManager.clearSession();
super.getChildren().clear(); //redirect to login page
Page page = this.getPage();
page.removeComponents();
Executions.sendRedirect("index.zul"); Executions.sendRedirect("index.zul");
} }
protected Session logout0() {
Session session = Executions.getCurrent().getDesktop().getSession();
//stop background thread
appDesktop.logout();
//clear remove all children and root component
getChildren().clear();
getPage().removeComponents();
//clear session attributes
session.getAttributes().clear();
//logout ad_session
AEnv.logout();
return session;
}
/** /**
* @return IDesktop * @return IDesktop
*/ */
@ -426,6 +442,7 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
@Override @Override
public void changeRole(MUser user) { public void changeRole(MUser user) {
//save context for re-login
Properties properties = new Properties(); Properties properties = new Properties();
Env.setContext(properties, Env.AD_CLIENT_ID, Env.getAD_Client_ID(Env.getCtx())); Env.setContext(properties, Env.AD_CLIENT_ID, Env.getAD_Client_ID(Env.getCtx()));
Env.setContext(properties, Env.AD_ORG_ID, Env.getAD_Org_ID(Env.getCtx())); Env.setContext(properties, Env.AD_ORG_ID, Env.getAD_Org_ID(Env.getCtx()));
@ -438,17 +455,16 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
Env.setContext(properties, Env.LANGUAGE, Env.getContext(Env.getCtx(), Env.LANGUAGE)); Env.setContext(properties, Env.LANGUAGE, Env.getContext(Env.getCtx(), Env.LANGUAGE));
Env.setContext(properties, AEnv.LOCALE, Env.getContext(Env.getCtx(), AEnv.LOCALE)); Env.setContext(properties, AEnv.LOCALE, Env.getContext(Env.getCtx(), AEnv.LOCALE));
Locale locale = (Locale) Executions.getCurrent().getSession().getAttribute(Attributes.PREFERRED_LOCALE); Locale locale = (Locale) Executions.getCurrent().getDesktop().getSession().getAttribute(Attributes.PREFERRED_LOCALE);
HttpServletRequest httpRequest = (HttpServletRequest) Executions.getCurrent().getNativeRequest();
appDesktop.logout(); Session session = logout0();
HttpServletRequest httpRequest = (HttpServletRequest) Executions.getCurrent().getNativeRequest();
Session session = Executions.getCurrent().getDesktop().getSession();
session.getAttributes().clear();
AEnv.logout();
((SessionCtrl)session).invalidateNow();
Env.getCtx().clear();
//clear context and invalidate session
Env.getCtx().clear();
((SessionCtrl)session).invalidateNow();
//put saved context into new session
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
map.put("context", properties); map.put("context", properties);
map.put("locale", locale); map.put("locale", locale);

View File

@ -56,6 +56,7 @@ public class WPAPanel extends Panel implements EventListener<Event>
Grid grid = new Grid(); Grid grid = new Grid();
appendChild(grid); appendChild(grid);
grid.setWidth("100%"); grid.setWidth("100%");
grid.setHeight((m_goals.length * 132) + "px");
grid.setStyle("margin:0; padding:0; position: absolute;"); grid.setStyle("margin:0; padding:0; position: absolute;");
grid.makeNoStrip(); grid.makeNoStrip();
@ -66,12 +67,11 @@ public class WPAPanel extends Panel implements EventListener<Event>
{ {
Row row = new Row(); Row row = new Row();
rows.appendChild(row); rows.appendChild(row);
row.setWidth("100%");
WPerformanceIndicator pi = new WPerformanceIndicator(m_goals[i]); WPerformanceIndicator pi = new WPerformanceIndicator(m_goals[i]);
row.appendChild(pi); row.appendChild(pi);
pi.addEventListener(Events.ON_CLICK, this); pi.addEventListener(Events.ON_CLICK, this);
} }
} // init } // init
/** /**

View File

@ -14,6 +14,7 @@
package org.adempiere.webui.dashboard; package org.adempiere.webui.dashboard;
import org.adempiere.webui.apps.graph.WPAPanel; import org.adempiere.webui.apps.graph.WPAPanel;
import org.adempiere.webui.util.ServerPushTemplate;
import org.zkoss.zk.au.out.AuScript; import org.zkoss.zk.au.out.AuScript;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page; import org.zkoss.zk.ui.Page;
@ -41,8 +42,12 @@ public class DPPerformance extends DashboardPanel {
{ {
this.appendChild(paPanel); this.appendChild(paPanel);
} }
} }
public void refresh(ServerPushTemplate template) {
super.refresh(template);
Events.echoEvent("onPostRender", this, null);
}
@Override @Override
public void onPageAttached(Page newpage, Page oldpage) { public void onPageAttached(Page newpage, Page oldpage) {

View File

@ -40,6 +40,7 @@ import org.adempiere.webui.window.FDialog;
import org.adempiere.webui.window.ZkReportViewerProvider; import org.adempiere.webui.window.ZkReportViewerProvider;
import org.compiere.model.I_AD_Menu; import org.compiere.model.I_AD_Menu;
import org.compiere.model.MDashboardContent; import org.compiere.model.MDashboardContent;
import org.compiere.model.MDashboardPreference;
import org.compiere.model.MGoal; import org.compiere.model.MGoal;
import org.compiere.model.MMenu; import org.compiere.model.MMenu;
import org.compiere.model.MPInstance; import org.compiere.model.MPInstance;
@ -48,7 +49,6 @@ import org.compiere.model.MProcess;
import org.compiere.model.MQuery; import org.compiere.model.MQuery;
import org.compiere.model.MRole; import org.compiere.model.MRole;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.X_PA_DashboardContent;
import org.compiere.print.ReportEngine; import org.compiere.print.ReportEngine;
import org.compiere.process.ProcessInfo; import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
@ -128,22 +128,27 @@ public class DashboardController implements EventListener<Event> {
try try
{ {
int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
MDashboardContent[] dps = MDashboardContent.getForSession(AD_User_ID); int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx());
if (dps.length == 0)
createUserPreference();
dps = MDashboardContent.getForSession(isShowInDashboard, AD_User_ID); // based on user MDashboardPreference[] dps = MDashboardPreference.getForSession(AD_User_ID, AD_Role_ID);
noOfCols = MDashboardContent.getForSessionColumnCount(isShowInDashboard, AD_User_ID); if (dps.length == 0)
createDashboardPreference();
dps = MDashboardPreference.getForSession(isShowInDashboard, AD_User_ID, AD_Role_ID); // based on user and role
noOfCols = MDashboardPreference.getForSessionColumnCount(isShowInDashboard, AD_User_ID, AD_Role_ID);
width = noOfCols <= 0 ? 100 : 100 / noOfCols; width = noOfCols <= 0 ? 100 : (100-1) / noOfCols;
for (final MDashboardContent dp : dps) for (final MDashboardPreference dp : dps)
{ {
MDashboardContent dc = new MDashboardContent(dp.getCtx(), dp.getPA_DashboardContent_ID(), dp.get_TrxName());
int columnNo = dp.getColumnNo(); int columnNo = dp.getColumnNo();
if(dashboardColumnLayout == null || currentColumnNo != columnNo) if(dashboardColumnLayout == null || currentColumnNo != columnNo)
{ {
dashboardColumnLayout = new Vlayout(); dashboardColumnLayout = new Vlayout();
dashboardColumnLayout.setAttribute("ColumnNo", columnNo); dashboardColumnLayout.setAttribute("ColumnNo", columnNo);
dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard); dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard);
dashboardColumnLayout.setAttribute("IsAdditionalColumn", false);
Anchorchildren dashboardColumn = new Anchorchildren(); Anchorchildren dashboardColumn = new Anchorchildren();
dashboardColumn.setAnchor((width-2) + "%" + " 100%"); dashboardColumn.setAnchor((width-2) + "%" + " 100%");
dashboardColumn.setDroppable("true"); dashboardColumn.setDroppable("true");
@ -158,17 +163,18 @@ public class DashboardController implements EventListener<Event> {
Panel panel = new Panel(); Panel panel = new Panel();
panel.setAttribute("PA_DashboardContent_ID", dp.getPA_DashboardContent_ID()); panel.setAttribute("PA_DashboardContent_ID", dp.getPA_DashboardContent_ID());
panel.setAttribute("PA_DashboardPreference_ID", dp.getPA_DashboardPreference_ID());
panelList.add(panel); panelList.add(panel);
panel.addEventListener(Events.ON_MAXIMIZE, this); panel.addEventListener(Events.ON_MAXIMIZE, this);
panel.setStyle("margin: 2px; position: relative;"); panel.setStyle("margin: 2px; position: relative;");
panel.setTitle(dp.get_Translation(MDashboardContent.COLUMNNAME_Name)); panel.setTitle(dc.get_Translation(MDashboardContent.COLUMNNAME_Name));
panel.setMaximizable(true); panel.setMaximizable(true);
String description = dp.get_Translation(MDashboardContent.COLUMNNAME_Description); String description = dc.get_Translation(MDashboardContent.COLUMNNAME_Description);
if(description != null) if(description != null)
panel.setTooltiptext(description); panel.setTooltiptext(description);
panel.setCollapsible(dp.isCollapsible()); panel.setCollapsible(dc.isCollapsible());
panel.setOpen(!dp.isCollapsedByDefault()); panel.setOpen(!dp.isCollapsedByDefault());
panel.addEventListener(Events.ON_OPEN, this); panel.addEventListener(Events.ON_OPEN, this);
@ -184,7 +190,7 @@ public class DashboardController implements EventListener<Event> {
boolean panelEmpty = true; boolean panelEmpty = true;
// HTML content // HTML content
String htmlContent = dp.getHTML(); String htmlContent = dc.getHTML();
if(htmlContent != null) if(htmlContent != null)
{ {
StringBuilder result = new StringBuilder("<html><head>"); StringBuilder result = new StringBuilder("<html><head>");
@ -217,12 +223,12 @@ public class DashboardController implements EventListener<Event> {
} }
// Window // Window
int AD_Window_ID = dp.getAD_Window_ID(); int AD_Window_ID = dc.getAD_Window_ID();
if(AD_Window_ID > 0) if(AD_Window_ID > 0)
{ {
int AD_Menu_ID = dp.getAD_Menu_ID(); int AD_Menu_ID = dc.getAD_Menu_ID();
ToolBarButton btn = new ToolBarButton(String.valueOf(AD_Menu_ID)); ToolBarButton btn = new ToolBarButton(String.valueOf(AD_Menu_ID));
I_AD_Menu menu = dp.getAD_Menu(); I_AD_Menu menu = dc.getAD_Menu();
btn.setLabel(menu.getName()); btn.setLabel(menu.getName());
btn.setAttribute("AD_Menu_ID", AD_Menu_ID); btn.setAttribute("AD_Menu_ID", AD_Menu_ID);
btn.addEventListener(Events.ON_CLICK, this); btn.addEventListener(Events.ON_CLICK, this);
@ -231,7 +237,7 @@ public class DashboardController implements EventListener<Event> {
} }
//Report & Process //Report & Process
int AD_Process_ID = dp.getAD_Process_ID(); int AD_Process_ID = dc.getAD_Process_ID();
if(AD_Process_ID > 0) if(AD_Process_ID > 0)
{ {
String sql = "SELECT AD_MENU_ID FROM AD_MENU WHERE AD_Process_ID=?"; String sql = "SELECT AD_MENU_ID FROM AD_MENU WHERE AD_Process_ID=?";
@ -242,9 +248,9 @@ public class DashboardController implements EventListener<Event> {
btn.addEventListener(Events.ON_CLICK, this); btn.addEventListener(Events.ON_CLICK, this);
panelEmpty = false; panelEmpty = false;
if (dp.isEmbedReportContent()) if (dc.isEmbedReportContent())
{ {
String processParameters = dp.getProcessParameters(); String processParameters = dc.getProcessParameters();
embedReport(content, AD_Process_ID, processParameters); embedReport(content, AD_Process_ID, processParameters);
content.addEventListener("onZoom", new EventListener<Event>() { content.addEventListener("onZoom", new EventListener<Event>() {
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
@ -292,7 +298,7 @@ public class DashboardController implements EventListener<Event> {
} }
// Goal // Goal
int PA_Goal_ID = dp.getPA_Goal_ID(); int PA_Goal_ID = dc.getPA_Goal_ID();
if(PA_Goal_ID > 0) if(PA_Goal_ID > 0)
{ {
//link to open performance detail //link to open performance detail
@ -308,17 +314,17 @@ public class DashboardController implements EventListener<Event> {
}); });
content.appendChild(link); content.appendChild(link);
String goalDisplay = dp.getGoalDisplay(); String goalDisplay = dc.getGoalDisplay();
MGoal goal = new MGoal(Env.getCtx(), PA_Goal_ID, null); MGoal goal = new MGoal(Env.getCtx(), PA_Goal_ID, null);
WGraph graph = new WGraph(goal, 55, false, true, WGraph graph = new WGraph(goal, 55, false, true,
!(X_PA_DashboardContent.GOALDISPLAY_Chart.equals(goalDisplay)), !(MDashboardContent.GOALDISPLAY_Chart.equals(goalDisplay)),
X_PA_DashboardContent.GOALDISPLAY_Chart.equals(goalDisplay)); MDashboardContent.GOALDISPLAY_Chart.equals(goalDisplay));
content.appendChild(graph); content.appendChild(graph);
panelEmpty = false; panelEmpty = false;
} }
// ZUL file url // ZUL file url
String url = dp.getZulFilePath(); String url = dc.getZulFilePath();
if(url != null) if(url != null)
{ {
try { try {
@ -354,6 +360,7 @@ public class DashboardController implements EventListener<Event> {
dashboardColumnLayout = new Vlayout(); dashboardColumnLayout = new Vlayout();
dashboardColumnLayout.setAttribute("ColumnNo", "0"); dashboardColumnLayout.setAttribute("ColumnNo", "0");
dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard); dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard);
dashboardColumnLayout.setAttribute("IsAdditionalColumn", false);
Anchorchildren dashboardColumn = new Anchorchildren(); Anchorchildren dashboardColumn = new Anchorchildren();
dashboardColumn.setAnchor((width-2) + "%" + " 100%"); dashboardColumn.setAnchor((width-2) + "%" + " 100%");
dashboardColumn.setDroppable("true"); dashboardColumn.setDroppable("true");
@ -362,6 +369,22 @@ public class DashboardController implements EventListener<Event> {
columnList.add(dashboardColumn); columnList.add(dashboardColumn);
dashboardLayout.appendChild(dashboardColumn); dashboardLayout.appendChild(dashboardColumn);
dashboardColumnLayout.setWidth("100%"); dashboardColumnLayout.setWidth("100%");
}
else if (isShowInDashboard)
{
// additional column
dashboardColumnLayout = new Vlayout();
dashboardColumnLayout.setAttribute("ColumnNo", currentColumnNo + 1);
dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard);
dashboardColumnLayout.setAttribute("IsAdditionalColumn", true);
Anchorchildren dashboardColumn = new Anchorchildren();
dashboardColumn.setAnchor("1% 100%");
dashboardColumn.setDroppable("true");
dashboardColumn.addEventListener(Events.ON_DROP, this);
dashboardColumn.appendChild(dashboardColumnLayout);
columnList.add(dashboardColumn);
dashboardLayout.appendChild(dashboardColumn);
dashboardColumnLayout.setWidth("100%");
} }
} }
catch (Exception e) catch (Exception e)
@ -446,7 +469,7 @@ public class DashboardController implements EventListener<Event> {
{ {
Vlayout dashboardColumnLayout = (Vlayout) target.getParent(); Vlayout dashboardColumnLayout = (Vlayout) target.getParent();
dashboardColumnLayout.insertBefore(panel, target); dashboardColumnLayout.insertBefore(panel, target);
saveUserPreference(dashboardColumnLayout); saveDashboardPreference(dashboardColumnLayout);
} }
} }
else if (comp instanceof Anchorchildren) else if (comp instanceof Anchorchildren)
@ -457,7 +480,7 @@ public class DashboardController implements EventListener<Event> {
{ {
Vlayout dashboardColumnLayout = (Vlayout) target.getFirstChild(); Vlayout dashboardColumnLayout = (Vlayout) target.getFirstChild();
dashboardColumnLayout.appendChild(panel); dashboardColumnLayout.appendChild(panel);
saveUserPreference(dashboardColumnLayout); saveDashboardPreference(dashboardColumnLayout);
} }
} }
} }
@ -467,53 +490,43 @@ public class DashboardController implements EventListener<Event> {
if(comp instanceof Panel) if(comp instanceof Panel)
{ {
Panel panel = (Panel) comp; Panel panel = (Panel) comp;
Object value = panel.getAttribute("PA_DashboardContent_ID"); Object value = panel.getAttribute("PA_DashboardPreference_ID");
if (value != null) if (value != null)
{ {
int PA_DashboardContent_ID = Integer.parseInt(value.toString()); int PA_DashboardPreference_ID = Integer.parseInt(value.toString());
MDashboardContent dashboardContent = new MDashboardContent(Env.getCtx(), PA_DashboardContent_ID, null); MDashboardPreference preference = new MDashboardPreference(Env.getCtx(), PA_DashboardPreference_ID, null);
dashboardContent.setIsCollapsedByDefault(!panel.isOpen()); preference.setIsCollapsedByDefault(!panel.isOpen());
if (!dashboardContent.save()) if (!preference.save())
logger.log(Level.SEVERE, "Failed to save dashboard content edit " + dashboardContent.toString()); logger.log(Level.SEVERE, "Failed to save dashboard preference " + preference.toString());
} }
} }
} }
} }
private void createUserPreference() private void createDashboardPreference()
{ {
if (Env.getAD_User_ID(Env.getCtx()) == 0) if (Env.getAD_User_ID(Env.getCtx()) == 0 && Env.getAD_Role_ID(Env.getCtx()) == 0)
return; return;
MDashboardContent[] dps = MDashboardContent.getForSession(0); MDashboardContent[] dcs = MDashboardContent.getForSession(0, 0);
for (MDashboardContent dp : dps) for (MDashboardContent dc : dcs)
{ {
MDashboardContent dashboardContent = new MDashboardContent(Env.getCtx(), 0, null); MDashboardPreference preference = new MDashboardPreference(Env.getCtx(), 0, null);
dashboardContent.setAD_Org_ID(Env.getAD_Org_ID(Env.getCtx())); preference.setAD_Org_ID(Env.getAD_Org_ID(Env.getCtx()));
dashboardContent.setAD_Role_ID(Env.getAD_Role_ID(Env.getCtx())); preference.setAD_Role_ID(Env.getAD_Role_ID(Env.getCtx()));
dashboardContent.setAD_User_ID(Env.getAD_User_ID(Env.getCtx())); preference.setAD_User_ID(Env.getAD_User_ID(Env.getCtx()));
preference.setColumnNo(dc.getColumnNo());
dashboardContent.setAD_Process_ID(dp.getAD_Process_ID()); preference.setIsCollapsedByDefault(dc.isCollapsedByDefault());
dashboardContent.setAD_Window_ID(dp.getAD_Window_ID()); preference.setIsShowInDashboard(dc.isShowInDashboard());
dashboardContent.setColumnNo(dp.getColumnNo()); preference.setLine(dc.getLine());
dashboardContent.setDescription(dp.getDescription()); preference.setPA_DashboardContent_ID(dc.getPA_DashboardContent_ID());
dashboardContent.setGoalDisplay(dp.getGoalDisplay());
dashboardContent.setHTML(dp.getHTML());
dashboardContent.setIsCollapsedByDefault(dp.isCollapsedByDefault());
dashboardContent.setIsCollapsible(dp.isCollapsible());
dashboardContent.setIsEmbedReportContent(dp.isEmbedReportContent());
dashboardContent.setIsShowInDashboard(dp.isShowInDashboard());
dashboardContent.setLine(dp.getLine());
dashboardContent.setName(dp.getName());
dashboardContent.setPA_Goal_ID(dp.getPA_Goal_ID());
dashboardContent.setZulFilePath(dp.getZulFilePath());
if (!dashboardContent.save()) if (!preference.save())
logger.log(Level.SEVERE, "Failed to create dashboard content edit " + dashboardContent.toString()); logger.log(Level.SEVERE, "Failed to create dashboard preference " + preference.toString());
} }
} }
private void saveUserPreference(Vlayout layout) private void saveDashboardPreference(Vlayout layout)
{ {
Object value = layout.getAttribute("ColumnNo"); Object value = layout.getAttribute("ColumnNo");
if (value != null) if (value != null)
@ -532,21 +545,59 @@ public class DashboardController implements EventListener<Event> {
if (child instanceof Panel) if (child instanceof Panel)
{ {
Panel panel = (Panel) child; Panel panel = (Panel) child;
value = panel.getAttribute("PA_DashboardContent_ID"); value = panel.getAttribute("PA_DashboardPreference_ID");
if (value != null) if (value != null)
{ {
++counter; ++counter;
int PA_DashboardContent_ID = Integer.parseInt(value.toString()); int PA_DashboardPreference_ID = Integer.parseInt(value.toString());
MDashboardContent dashboardContent = new MDashboardContent(Env.getCtx(), PA_DashboardContent_ID, null); MDashboardPreference preference = new MDashboardPreference(Env.getCtx(), PA_DashboardPreference_ID, null);
dashboardContent.setColumnNo(columnNo); preference.setColumnNo(columnNo);
dashboardContent.setLine(new BigDecimal(counter * 10)); preference.setLine(new BigDecimal(counter * 10));
dashboardContent.setIsShowInDashboard(isShowInDashboard); preference.setIsShowInDashboard(isShowInDashboard);
if (!dashboardContent.save()) if (!preference.save())
logger.log(Level.SEVERE, "Failed to save dashboard content edit " + dashboardContent.toString()); logger.log(Level.SEVERE, "Failed to save dashboard preference " + preference.toString());
} }
} }
} }
if (isShowInDashboard)
{
value = layout.getAttribute("IsAdditionalColumn");
if (value != null)
{
boolean isAdditionalColumn = Boolean.parseBoolean(value.toString());
if (isAdditionalColumn)
{
layout.setAttribute("IsAdditionalColumn", false);
int noOfCols = columnList.size();
int width = noOfCols <= 0 ? 100 : (100-1) / noOfCols;
for (Anchorchildren column : columnList)
column.setAnchor((width-2) + "%" + " 100%");
// additional column
Vlayout dashboardColumnLayout = new Vlayout();
dashboardColumnLayout.setAttribute("ColumnNo", columnNo + 1);
dashboardColumnLayout.setAttribute("IsShowInDashboard", isShowInDashboard);
dashboardColumnLayout.setAttribute("IsAdditionalColumn", true);
Anchorchildren dashboardColumn = new Anchorchildren();
dashboardColumn.setAnchor("1% 100%");
dashboardColumn.setDroppable("true");
dashboardColumn.addEventListener(Events.ON_DROP, this);
dashboardColumn.appendChild(dashboardColumnLayout);
columnList.add(dashboardColumn);
dashboardLayout.appendChild(dashboardColumn);
dashboardColumnLayout.setWidth("100%");
dashboardLayout.invalidate();
}
}
}
if (!dashboardRunnable.isEmpty())
dashboardRunnable.refreshDashboard();
} }
} }
} }

View File

@ -65,7 +65,7 @@ public class HeaderPanel extends Panel implements EventListener<Event>
UserPanel userPanel = new UserPanel(); UserPanel userPanel = new UserPanel();
image = new Image(ThemeManager.getSmallLogo()); image = new Image(ThemeManager.getSmallLogo());
image.addEventListener(Events.ON_CLICK, this); image.addEventListener(Events.ON_CLICK, this);
image.setStyle("cursor: pointer;"); image.setStyle("cursor: pointer;");
image.setWidth("100px"); image.setWidth("100px");
@ -74,6 +74,7 @@ public class HeaderPanel extends Panel implements EventListener<Event>
LayoutUtils.addSclass("desktop-header", layout); LayoutUtils.addSclass("desktop-header", layout);
layout.setParent(this); layout.setParent(this);
West west = new West(); West west = new West();
west.setWidth("50%");
west.setParent(layout); west.setParent(layout);
Hbox hbox = new Hbox(); Hbox hbox = new Hbox();
@ -106,9 +107,9 @@ public class HeaderPanel extends Panel implements EventListener<Event>
Center center = new Center(); Center center = new Center();
center.setParent(layout); center.setParent(layout);
userPanel.setParent(center); userPanel.setParent(center);
userPanel.setWidth("100%");
userPanel.setHeight("100%"); userPanel.setHeight("100%");
userPanel.setStyle("position: absolute"); userPanel.setAlign("right");
userPanel.setStyle("position: absolute; text-align:right;");
center.setFlex(true); center.setFlex(true);
LayoutUtils.addSclass("desktop-header-right", center); LayoutUtils.addSclass("desktop-header-right", center);
//the following doesn't work when declare as part of the header-right style //the following doesn't work when declare as part of the header-right style

View File

@ -62,19 +62,13 @@ public class UserPanel extends Vbox implements EventListener<Event>
public UserPanel() public UserPanel()
{ {
super();
this.ctx = Env.getCtx(); this.ctx = Env.getCtx();
init(); init();
} }
private void init() private void init()
{ {
this.setStyle("text-align:right");
// Elaine 2008/11/07 - fix the layout problem in IE7
this.setWidth("100%");
this.setAlign("right");
//
Vbox vbox = new Vbox(); Vbox vbox = new Vbox();
this.appendChild(vbox); this.appendChild(vbox);

View File

@ -78,17 +78,6 @@ public class SessionManager
return app; return app;
} }
public static void clearSession()
{
Env.getCtx().clear();
Session session = getSession();
if (session != null)
{
session.removeAttribute(SessionContextListener.SESSION_CTX);
session.invalidate();
}
}
public static void logoutSession() public static void logoutSession()
{ {
IWebClient app = getSessionApplication(); IWebClient app = getSessionApplication();

View File

@ -1,6 +1,6 @@
osgi.framework=file\:../plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar osgi.framework=file\:../plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar
equinox.use.ds=true equinox.use.ds=true
osgi.bundles=org.eclipse.core.variables,org.eclipse.ant.core,org.eclipse.core.runtime@start,org.hamcrest.core,org.junit,org.apache.commons.collections,org.apache.ant,org.apache.commons.net,org.eclipse.equinox.app,org.eclipse.equinox.registry,org.eclipse.equinox.common@2:start,org.eclipse.core.contenttype,org.eclipse.core.jobs,org.eclipse.equinox.preferences,org.apache.commons.logging,org.eclipse.osgi.services,org.sat4j.core,org.sat4j.pb,org.eclipse.ecf,org.eclipse.ecf.filetransfer,org.eclipse.ecf.identity,org.eclipse.ecf.provider.filetransfer,org.eclipse.ecf.provider.filetransfer.httpclient,org.eclipse.ecf.provider.filetransfer.httpclient.ssl,org.eclipse.ecf.provider.filetransfer.ssl,org.eclipse.ecf.ssl,org.eclipse.equinox.ds@start,org.eclipse.equinox.event,org.eclipse.equinox.frameworkadmin,org.eclipse.equinox.frameworkadmin.equinox,org.eclipse.equinox.http.registry,org.eclipse.equinox.launcher,org.eclipse.equinox.p2.artifact.repository,org.eclipse.equinox.p2.console,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.director,org.eclipse.equinox.p2.director.app,org.eclipse.equinox.p2.engine,org.eclipse.equinox.p2.garbagecollector,org.eclipse.equinox.p2.jarprocessor,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.ql,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.touchpoint.eclipse,org.eclipse.equinox.p2.touchpoint.natives,org.eclipse.equinox.p2.transport.ecf,org.eclipse.equinox.security,org.eclipse.equinox.util,org.apache.commons.httpclient,org.eclipse.equinox.simpleconfigurator.manipulator,org.apache.commons.codec,org.eclipse.equinox.simpleconfigurator osgi.bundles=org.eclipse.core.net,org.eclipse.core.variables,org.eclipse.ant.core,org.eclipse.core.runtime@start,org.hamcrest.core,org.junit,org.apache.commons.collections,org.apache.ant,org.apache.commons.net,org.eclipse.equinox.app,org.eclipse.equinox.registry,org.eclipse.equinox.common@2:start,org.eclipse.core.contenttype,org.eclipse.core.jobs,org.eclipse.equinox.preferences,org.apache.commons.logging,org.eclipse.osgi.services,org.sat4j.core,org.sat4j.pb,org.eclipse.ecf,org.eclipse.ecf.filetransfer,org.eclipse.ecf.identity,org.eclipse.ecf.provider.filetransfer,org.eclipse.ecf.provider.filetransfer.httpclient,org.eclipse.ecf.provider.filetransfer.httpclient.ssl,org.eclipse.ecf.provider.filetransfer.ssl,org.eclipse.ecf.ssl,org.eclipse.equinox.ds@start,org.eclipse.equinox.event,org.eclipse.equinox.frameworkadmin,org.eclipse.equinox.frameworkadmin.equinox,org.eclipse.equinox.http.registry,org.eclipse.equinox.launcher,org.eclipse.equinox.p2.artifact.repository,org.eclipse.equinox.p2.console,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.director,org.eclipse.equinox.p2.director.app,org.eclipse.equinox.p2.engine,org.eclipse.equinox.p2.garbagecollector,org.eclipse.equinox.p2.jarprocessor,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.ql,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.touchpoint.eclipse,org.eclipse.equinox.p2.touchpoint.natives,org.eclipse.equinox.p2.transport.ecf,org.eclipse.equinox.security,org.eclipse.equinox.util,org.apache.commons.httpclient,org.eclipse.equinox.simpleconfigurator.manipulator,org.apache.commons.codec,org.eclipse.equinox.simpleconfigurator
osgi.framework.extensions= osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4 osgi.bundles.defaultStartLevel=4
eclipse.p2.profile=DefaultProfile eclipse.p2.profile=DefaultProfile

View File

@ -77,7 +77,14 @@
install-size="0" install-size="0"
version="0.0.0" version="0.0.0"
unpack="false"/> unpack="false"/>
<plugin
id="org.eclipse.core.net"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin <plugin
id="org.eclipse.equinox.launcher" id="org.eclipse.equinox.launcher"
os="linux,macosx,win32" os="linux,macosx,win32"
@ -93,6 +100,5 @@
download-size="0" download-size="0"
install-size="0" install-size="0"
version="0.0.0" version="0.0.0"
unpack="false"/> unpack="false"/>
</feature> </feature>