IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane / thanks to Anthony Sossah (xolali) for the contribution and red1 for the peer review and integration
This commit is contained in:
parent
0a5309d390
commit
c2737073e6
|
@ -0,0 +1,556 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jul 6, 2013 9:37:51 AM GMT
|
||||
-- http://jira.idempiere.com/browse/IDEMPIERE-1045
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,AD_Org_ID,CreatedBy,Updated,UpdatedBy,Created,AD_Client_ID,EntityType) VALUES ('N','N','N','4',0,200089,'N','N','N','L','7b655e17-ab9d-4aa5-ad0b-ccf466542bbd','Y','Y','AD_InfoRelated','InfoRelated','Y',0,0,TO_DATE('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:37:59 AM GMT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,Created,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID) VALUES ('N',200000,'Y',1000000,'N','Y',200087,'cf86882c-aa4f-4866-99f2-06fb2cf588fe','Table AD_InfoRelated','AD_InfoRelated',1,0,TO_DATE('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),0,0,TO_DATE('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:00 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_ID',202556,'InfoRelated','InfoRelated','690dfc35-2577-44d3-8a92-74ed78756846',TO_DATE('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210597,'Y','N','N','N',10,'N',13,'Y',202556,'N','Y','8937e3af-8c97-4b1c-9292-ebd9ac89cc53','N','AD_InfoRelated_ID','InfoRelated','N',TO_DATE('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
CREATE TABLE AD_InfoRelated (AD_InfoRelated_ID NUMBER(10) NOT NULL, CONSTRAINT AD_InfoRelated_Key PRIMARY KEY (AD_InfoRelated_ID))
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210598,'Y','N','N','N',10,'N',19,129,'N',102,'N','Y','60f193f8-6553-4b5b-bd81-76e3f31b2ef6','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',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210599,'Y','N','N','N',10,'N',19,'N',113,'N','Y','afeec9a6-1eb1-4790-802d-864ea00dc862','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210600,'Y','N','N','N',1,'N',20,'N',348,'N','Y','5acbe692-1a57-49c8-9885-e6cb7e6166ee','Y','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',TO_DATE('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210601,'Y','N','N','N',29,'N',16,'N',245,'N','Y','a4213f78-0c68-4765-a984-ba67359bbcc9','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Created DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210602,110,'Y','N','N','N',10,'N',18,'N',246,'N','Y','c0244ff1-7b07-4ef6-bd60-41802df6833f','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210603,'Y','N','N','N',29,'N',16,'N',607,'N','Y','5f2d2eeb-6b00-47f0-9a27-90e48d2c9f05','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Updated DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210604,110,'Y','N','N','N',10,'N',18,'N',608,'N','Y','983cde5c-62b3-4ea0-af96-28714415b967','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210605,'Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','130edb93-0a58-4895-aba9-50c64dabaeaa','Y','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',TO_DATE('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Name NVARCHAR2(60) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210606,'N','N','N','N',255,'Y',10,'N',275,'N','Y','aaca8f95-6d0c-4d6c-b2fa-d9cfd321a1af','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',TO_DATE('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Description NVARCHAR2(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210607,'N','N','N','N',2000,'N',14,'N',326,'N','Y','f13e2849-6371-42ff-8dad-12fb532c58f4','Y','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',TO_DATE('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Help NVARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210608,'Y','N','N','N',10,'N',19,'N',3068,'N','Y','3c3b6796-836b-4f27-a432-524bd8d636d9','Y','AD_InfoWindow_ID','Info and search/select Window','The Info window is used to search and select records as well as display information relevant to the selection.','Info Window','Y',TO_DATE('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_InfoWindow_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210609,'Y','N','N','N',10,'N',11,'N',566,'N','Y','68b51a70-ac68-4f53-8a98-171e0e4e7509','Y','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD SeqNo NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:13 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedInfo_ID',202557,'RelatedInfo_ID','RelatedInfo_ID','417c2969-095a-4137-b250-ad3b7dc34d55',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200071,'AD_RelatedInfoWindow','84852b3d-373d-4d0c-9147-7be7923e93e4','N','T',0,0,TO_DATE('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200071,15744,15752,385,895,'3a863968-8b44-4b47-b0f1-50cca1b65ae0',0,TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210610,200071,'Y','N','N','N',10,'N',18,'N',202557,'N','Y','97a4dff9-3272-42c9-9bf2-cf0d14abc16c','Y','RelatedInfo_ID','0','RelatedInfo_ID','Y',TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD RelatedInfo_ID NUMBER(10) DEFAULT 0 NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedColumn_ID',202558,'RelatedColumn_ID','RelatedColumn_ID','fc1be9d0-d099-422a-9192-bd0412b566f6',TO_DATE('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200072,'AD_LinkInfowindow','584ab9bd-2a90-4d98-bc6b-fdff8c346a3e','N','T',0,0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200072,15773,15781,385,897,'73c98762-5d7a-46c6-918f-4166d50e606a',0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:26 AM GMT
|
||||
INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoColumn.AD_InfoWindow_ID=@RelatedInfo_ID@',200046,'AD_InfoColumn(related window columns)','S','5372d944-b877-4b0c-9c02-0a25c8cce42f',0,0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210611,200072,'Y','N','N','N',10,'N',18,200046,'N',202558,'N','Y','7318afe5-0812-46ec-a6d3-c0c2ac9f997b','Y','RelatedColumn_ID','0','RelatedColumn_ID','Y',TO_DATE('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD RelatedColumn_ID NUMBER(10) DEFAULT 0 NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_UU',202559,'InfoRelated','InfoRelated','a5b2eba1-cde4-4e88-bb39-ee4087a75833',TO_DATE('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210612,'N','N','N',0,'N',36,'N',10,'N',202559,'N','Y','59776e05-c2ee-4ad7-98cb-7816f6b93465','N','AD_InfoRelated_UU','InfoRelated','N',TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_InfoRelated_UU NVARCHAR2(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT AD_InfoRelated_UU_idx UNIQUE (AD_InfoRelated_UU)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:29 AM GMT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,AD_Column_ID,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,Name,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('N','N','N',385,50,'N','N',200089,'N',15744,'N','N','Y','N',1,'773e0bd5-8a1a-4697-9a6a-edb8c380d24d','Related Info Window',200100,0,TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:30 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,36,'N','N',210612,0,'Y',202258,'N','InfoRelated','041af0da-c6fa-4002-9856-7bb72efc2310','N','N',0,0,TO_DATE('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,1,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210598,10,'Y',202259,'Y','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','2e94611f-d943-493d-816e-e69a7ecb2a64','Y','N',0,0,TO_DATE('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),'Y',10,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210599,20,'Y',202260,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','31c6d0ac-21a2-4d6e-bca5-e88f577d4581','Y','N',0,0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',20,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:32 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,1,'N','N',210600,30,'Y',202261,'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.','The record is active in the system','Active','ca430fd2-c224-40b6-81d8-48b8260913cb','Y','N',0,0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',30,'Y',2,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210608,40,'Y',202262,'N','The Info window is used to search and select records as well as display information relevant to the selection.','Info and search/select Window','Info Window','773101d1-adc8-4a50-a46e-c0256a61d0e6','Y','N',0,0,TO_DATE('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),'Y',40,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,60,'N','N',210605,50,'Y',202263,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Alphanumeric identifier of the entity','Name','06b5cc6d-bb15-4d10-bb86-e3fc38797f7b','Y','N',0,0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',50,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:37 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,255,'N','N',210606,60,'Y',202264,'N','A description is limited to 255 characters.','Optional short description of the record','Description','9e56c072-3e01-4f88-91ba-03cf0b163fae','Y','N',0,0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',60,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:38 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (3,'N',200100,2000,'N','N',210607,70,'Y',202265,'N','The Help field contains a hint, comment or help about the use of this item.','Comment or Hint','Comment/Help','581926dc-f5e1-46e9-8665-3f789295a63d','Y','N',0,0,TO_DATE('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),'Y',70,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210610,80,'Y',202266,'N','RelatedInfo_ID','62744643-45df-4d01-bd95-5214c5f11c1f','Y','N',0,0,TO_DATE('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),'Y',80,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210611,90,'Y',202267,'N','RelatedColumn_ID','40fc94fc-bd49-4bca-b9c1-c28e15b399fa','Y','N',0,0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',90,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:43 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210609,100,'Y',202268,'N','The Sequence indicates the order of records','Method of ordering records; lowest number comes first','Sequence','170ca2d8-b832-4a60-ba2c-e580f2940fd3','Y','N','N',0,0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',100,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:44 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210597,'Y',202269,'N','InfoRelated','0f22c3e7-2e28-4e9c-a923-57a0678a5d42','N','N',0,0,TO_DATE('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210627,'N','N','N','N',10,'N',11,'N',302,'N','Y','b208fbe3-a0f8-4821-a6c0-0045e1ca2459','Y','FieldLength','Length of the column in the database','The Length indicates the length of a column as defined in the database.','Length','Y',TO_DATE('2013-07-06 09:39:08','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:08','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD FieldLength NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210628,'N','N','N','N',60,'N',10,'N',616,'N','Y','46b815b8-a798-41d6-8478-69312fceebd5','Y','VFormat','Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09"','<B>Validation elements:</B>
|
||||
(Space) any character
|
||||
_ Space (fixed character)
|
||||
l any Letter a..Z NO space
|
||||
L any Letter a..Z NO space converted to upper case
|
||||
o any Letter a..Z or space
|
||||
O any Letter a..Z or space converted to upper case
|
||||
a any Letters & Digits NO space
|
||||
A any Letters & Digits NO space converted to upper case
|
||||
c any Letters & Digits or space
|
||||
C any Letters & Digits or space converted to upper case
|
||||
0 Digits 0..9 NO space
|
||||
9 Digits 0..9 or space
|
||||
|
||||
Example of format "(000)_000-0000"','Value Format','Y',TO_DATE('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD VFormat NVARCHAR2(60) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:10 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210629,'N','N','N','N',20,'N',10,'N',1060,'N','Y','d0552bae-1dce-4b08-90b8-837cf539e723','Y','ValueMin','Minimum Value for a field','The Minimum Value indicates the lowest allowable value for a field.','Min. Value','Y',TO_DATE('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:10 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD ValueMin NVARCHAR2(20) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:11 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210630,'N','N','N','N',20,'N',10,'N',1059,'N','Y','c9bc1c74-54bf-4b41-8570-39187b0797b5','Y','ValueMax','Maximum Value for a field','The Maximum Value indicates the highest allowable value for a field','Max. Value','Y',TO_DATE('2013-07-06 09:39:10','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:10','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:11 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD ValueMax NVARCHAR2(20) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210631,'N','N','N','N',2000,'N',14,'N',272,'N','Y','097b9d01-290a-4757-9e4d-d1befc2bf0d0','Y','DefaultValue','Default value hierarchy, separated by ;','The defaults are evaluated in the order of definition, the first not null value becomes the default value of the column. The values are separated by comma or semicolon. a) Literals:. ''Text'' or 123 b) Variables - in format @Variable@ - Login e.g. #Date, #AD_Org_ID, #AD_Client_ID - Accounting Schema: e.g. $C_AcctSchema_ID, $C_Calendar_ID - Global defaults: e.g. DateFormat - Window values (all Picks, CheckBoxes, RadioButtons, and DateDoc/DateAcct) c) SQL code with the tag: @SQL=SELECT something AS DefaultValue FROM ... The SQL statement can contain variables. There can be no other value other than the SQL statement. The default is only evaluated, if no user preference is defined. Default definitions are ignored for record columns as Key, Parent, Client as well as Buttons.','Default Logic','Y',TO_DATE('2013-07-06 09:39:11','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:11','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD DefaultValue NVARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210632,'N','N','N','N',1,'N',20,'N',410,'N','Y','3fb5673b-b0b8-49e9-b5d4-8425b0e98c1c','Y','IsSameLine','Displayed on same line as previous field','The Same Line checkbox indicates that the field will display on the same line as the previous field.','Same Line','Y',TO_DATE('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD IsSameLine CHAR(1) DEFAULT NULL CHECK (IsSameLine IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
UPDATE AD_Field SET SortNo=NULL, DisplayLength=10, SeqNo=120, AD_Org_ID=0, SeqNoGrid=120, IsDisplayedGrid='Y', XPosition=1, AD_Client_ID=0,Updated=TO_DATE('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=201622
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:13 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,10,'N','N',210627,160,'Y',202279,'N','The Length indicates the length of a column as defined in the database.','Length of the column in the database','Length','b65197bf-8cbb-41a5-a5ab-f0931d027048','Y','N',0,0,TO_DATE('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),'Y',160,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:14 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,1,'Y','N',210632,'Y',202280,'N','The Same Line checkbox indicates that the field will display on the same line as the previous field.','Displayed on same line as previous field','Same Line','3efca7e4-299b-46c6-8781-617d430aec7e','Y','N',0,0,TO_DATE('2013-07-06 09:39:13','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:13','YYYY-MM-DD HH24:MI:SS'),'Y','Y',5,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:14 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (3,'N',844,2000,'N','N',210631,'Y',202281,'N','The defaults are evaluated in the order of definition, the first not null value becomes the default value of the column. The values are separated by comma or semicolon. a) Literals:. ''Text'' or 123 b) Variables - in format @Variable@ - Login e.g. #Date, #AD_Org_ID, #AD_Client_ID - Accounting Schema: e.g. $C_AcctSchema_ID, $C_Calendar_ID - Global defaults: e.g. DateFormat - Window values (all Picks, CheckBoxes, RadioButtons, and DateDoc/DateAcct) c) SQL code with the tag: @SQL=SELECT something AS DefaultValue FROM ... The SQL statement can contain variables. There can be no other value other than the SQL statement. The default is only evaluated, if no user preference is defined. Default definitions are ignored for record columns as Key, Parent, Client as well as Buttons.','Default value hierarchy, separated by ;','Default Logic','75bff2e7-1cae-463b-871c-3b01cf19b99e','Y','N',0,0,TO_DATE('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:15 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,20,'N','N',210629,'Y',202282,'N','The Minimum Value indicates the lowest allowable value for a field.','Minimum Value for a field','Min. Value','40713f08-8b02-4742-85ba-de5290b8748c','Y','N',0,0,TO_DATE('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:15 AM GMT
|
||||
UPDATE AD_Field SET SortNo=NULL, DisplayLength=30, SeqNo=NULL, AD_Org_ID=0, SeqNoGrid=NULL, XPosition=1, AD_Client_ID=0, ColumnSpan=5,Updated=TO_DATE('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=201624
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:16 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,60,'Y','N',210628,'Y',202283,'N','<B>Validation elements:</B>
|
||||
(Space) any character
|
||||
_ Space (fixed character)
|
||||
l any Letter a..Z NO space
|
||||
L any Letter a..Z NO space converted to upper case
|
||||
o any Letter a..Z or space
|
||||
O any Letter a..Z or space converted to upper case
|
||||
a any Letters & Digits NO space
|
||||
A any Letters & Digits NO space converted to upper case
|
||||
c any Letters & Digits or space
|
||||
C any Letters & Digits or space converted to upper case
|
||||
0 Digits 0..9 NO space
|
||||
9 Digits 0..9 or space
|
||||
|
||||
Example of format "(000)_000-0000"','Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09"','Value Format','dd8baba9-3e0b-4cac-a20f-e2f4e74a3cea','Y','N',0,0,TO_DATE('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),'Y','Y',3,'N',0,3,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:16 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,20,'Y','N',210630,'Y',202284,'N','The Maximum Value indicates the highest allowable value for a field','Maximum Value for a field','Max. Value','80e3458a-8a1b-4333-be68-3a4dd49d3c32','Y','N',0,0,TO_DATE('2013-07-06 09:39:16','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:39:16','YYYY-MM-DD HH24:MI:SS'),'Y','Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210598
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADClient_ADInfoRelated FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210599
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADOrg_ADInfoRelated FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210602
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT CreatedBy_ADInfoRelated FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210604
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT UpdatedBy_ADInfoRelated FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADInfoWindow_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210608
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADInfoWindow_ADInfoRelated FOREIGN KEY (AD_InfoWindow_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedInfo_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210610
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedInfo_ADInfoRelated FOREIGN KEY (RelatedInfo_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedColumn_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210611
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedColumn_ADInfoRelated FOREIGN KEY (RelatedColumn_ID) REFERENCES ad_infocolumn(ad_infocolumn_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:44 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='adprocess_adinfowindow',Updated=TO_DATE('2014-01-26 14:51:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210944
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202259
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202260
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202262
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202258
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=202263
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=202268
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202266
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=202267
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=202264
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=202265
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=202261
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:10 PM COT
|
||||
UPDATE AD_Column SET Name='AD_InfoRelated_UU',Updated=TO_DATE('2014-01-26 15:07:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210612
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Element SET Name='AD_InfoRelated_UU', PrintName='AD_InfoRelated_UU',Updated=TO_DATE('2014-01-26 15:07:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Column SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL, AD_Element_ID=202559 WHERE UPPER(ColumnName)='AD_INFORELATED_UU' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Field SET Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202559) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202559)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Column', PrintName='Related Info Column',Updated=TO_DATE('2014-01-26 15:07:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL, AD_Element_ID=202558 WHERE UPPER(ColumnName)='RELATEDCOLUMN_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202558) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Column', Name='Related Info Column' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202558)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Window', PrintName='Related Info Window',Updated=TO_DATE('2014-01-26 15:07:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL, AD_Element_ID=202557 WHERE UPPER(ColumnName)='RELATEDINFO_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202557) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Window', Name='Related Info Window' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202557)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:08:42 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID) VALUES ('I','Related Information',200253,'D','ffd7193a-7404-450c-82f4-dad988da87b1','Related Information','Y',TO_DATE('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:10 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_DATE('2014-01-26 16:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200100
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:46 PM COT
|
||||
UPDATE AD_Table SET AD_Window_ID=385, IsChangeLog='Y',Updated=TO_DATE('2014-01-26 16:57:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200089
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401261340_IDEMPIERE-1045.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,553 @@
|
|||
-- Jul 6, 2013 9:37:51 AM GMT
|
||||
-- http://jira.idempiere.com/browse/IDEMPIERE-1045
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,AD_Org_ID,CreatedBy,Updated,UpdatedBy,Created,AD_Client_ID,EntityType) VALUES ('N','N','N','4',0,200089,'N','N','N','L','7b655e17-ab9d-4aa5-ad0b-ccf466542bbd','Y','Y','AD_InfoRelated','InfoRelated','Y',0,0,TO_TIMESTAMP('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:37:59 AM GMT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,Created,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID) VALUES ('N',200000,'Y',1000000,'N','Y',200087,'cf86882c-aa4f-4866-99f2-06fb2cf588fe','Table AD_InfoRelated','AD_InfoRelated',1,0,TO_TIMESTAMP('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),0,0,TO_TIMESTAMP('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:00 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_ID',202556,'InfoRelated','InfoRelated','690dfc35-2577-44d3-8a92-74ed78756846',TO_TIMESTAMP('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210597,'Y','N','N','N',10,'N',13,'Y',202556,'N','Y','8937e3af-8c97-4b1c-9292-ebd9ac89cc53','N','AD_InfoRelated_ID','InfoRelated','N',TO_TIMESTAMP('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
CREATE TABLE AD_InfoRelated (AD_InfoRelated_ID NUMERIC(10) NOT NULL, CONSTRAINT AD_InfoRelated_Key PRIMARY KEY (AD_InfoRelated_ID))
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210598,'Y','N','N','N',10,'N',19,129,'N',102,'N','Y','60f193f8-6553-4b5b-bd81-76e3f31b2ef6','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',TO_TIMESTAMP('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN AD_Client_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210599,'Y','N','N','N',10,'N',19,'N',113,'N','Y','afeec9a6-1eb1-4790-802d-864ea00dc862','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_TIMESTAMP('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210600,'Y','N','N','N',1,'N',20,'N',348,'N','Y','5acbe692-1a57-49c8-9885-e6cb7e6166ee','Y','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',TO_TIMESTAMP('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210601,'Y','N','N','N',29,'N',16,'N',245,'N','Y','a4213f78-0c68-4765-a984-ba67359bbcc9','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',TO_TIMESTAMP('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN Created TIMESTAMP NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210602,110,'Y','N','N','N',10,'N',18,'N',246,'N','Y','c0244ff1-7b07-4ef6-bd60-41802df6833f','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_TIMESTAMP('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN CreatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210603,'Y','N','N','N',29,'N',16,'N',607,'N','Y','5f2d2eeb-6b00-47f0-9a27-90e48d2c9f05','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',TO_TIMESTAMP('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN Updated TIMESTAMP NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210604,110,'Y','N','N','N',10,'N',18,'N',608,'N','Y','983cde5c-62b3-4ea0-af96-28714415b967','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_TIMESTAMP('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210605,'Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','130edb93-0a58-4895-aba9-50c64dabaeaa','Y','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',TO_TIMESTAMP('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN Name VARCHAR(60) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210606,'N','N','N','N',255,'Y',10,'N',275,'N','Y','aaca8f95-6d0c-4d6c-b2fa-d9cfd321a1af','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',TO_TIMESTAMP('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN Description VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210607,'N','N','N','N',2000,'N',14,'N',326,'N','Y','f13e2849-6371-42ff-8dad-12fb532c58f4','Y','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',TO_TIMESTAMP('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN Help VARCHAR(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210608,'Y','N','N','N',10,'N',19,'N',3068,'N','Y','3c3b6796-836b-4f27-a432-524bd8d636d9','Y','AD_InfoWindow_ID','Info and search/select Window','The Info window is used to search and select records as well as display information relevant to the selection.','Info Window','Y',TO_TIMESTAMP('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN AD_InfoWindow_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210609,'Y','N','N','N',10,'N',11,'N',566,'N','Y','68b51a70-ac68-4f53-8a98-171e0e4e7509','Y','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y',TO_TIMESTAMP('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN SeqNo NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:13 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedInfo_ID',202557,'RelatedInfo_ID','RelatedInfo_ID','417c2969-095a-4137-b250-ad3b7dc34d55',TO_TIMESTAMP('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200071,'AD_RelatedInfoWindow','84852b3d-373d-4d0c-9147-7be7923e93e4','N','T',0,0,TO_TIMESTAMP('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200071,15744,15752,385,895,'3a863968-8b44-4b47-b0f1-50cca1b65ae0',0,TO_TIMESTAMP('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210610,200071,'Y','N','N','N',10,'N',18,'N',202557,'N','Y','97a4dff9-3272-42c9-9bf2-cf0d14abc16c','Y','RelatedInfo_ID','0','RelatedInfo_ID','Y',TO_TIMESTAMP('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN RelatedInfo_ID NUMERIC(10) DEFAULT '0' NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedColumn_ID',202558,'RelatedColumn_ID','RelatedColumn_ID','fc1be9d0-d099-422a-9192-bd0412b566f6',TO_TIMESTAMP('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200072,'AD_LinkInfowindow','584ab9bd-2a90-4d98-bc6b-fdff8c346a3e','N','T',0,0,TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200072,15773,15781,385,897,'73c98762-5d7a-46c6-918f-4166d50e606a',0,TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:26 AM GMT
|
||||
INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoColumn.AD_InfoWindow_ID=@RelatedInfo_ID@',200046,'AD_InfoColumn(related window columns)','S','5372d944-b877-4b0c-9c02-0a25c8cce42f',0,0,TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210611,200072,'Y','N','N','N',10,'N',18,200046,'N',202558,'N','Y','7318afe5-0812-46ec-a6d3-c0c2ac9f997b','Y','RelatedColumn_ID','0','RelatedColumn_ID','Y',TO_TIMESTAMP('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN RelatedColumn_ID NUMERIC(10) DEFAULT '0' NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_UU',202559,'InfoRelated','InfoRelated','a5b2eba1-cde4-4e88-bb39-ee4087a75833',TO_TIMESTAMP('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210612,'N','N','N',0,'N',36,'N',10,'N',202559,'N','Y','59776e05-c2ee-4ad7-98cb-7816f6b93465','N','AD_InfoRelated_UU','InfoRelated','N',TO_TIMESTAMP('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD COLUMN AD_InfoRelated_UU VARCHAR(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT AD_InfoRelated_UU_idx UNIQUE (AD_InfoRelated_UU)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:29 AM GMT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,AD_Column_ID,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,Name,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('N','N','N',385,50,'N','N',200089,'N',15744,'N','N','Y','N',1,'773e0bd5-8a1a-4697-9a6a-edb8c380d24d','Related Info Window',200100,0,TO_TIMESTAMP('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:30 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,36,'N','N',210612,0,'Y',202258,'N','InfoRelated','041af0da-c6fa-4002-9856-7bb72efc2310','N','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,1,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210598,10,'Y',202259,'Y','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','2e94611f-d943-493d-816e-e69a7ecb2a64','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),'Y',10,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210599,20,'Y',202260,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','31c6d0ac-21a2-4d6e-bca5-e88f577d4581','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',20,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:32 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,1,'N','N',210600,30,'Y',202261,'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.','The record is active in the system','Active','ca430fd2-c224-40b6-81d8-48b8260913cb','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',30,'Y',2,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210608,40,'Y',202262,'N','The Info window is used to search and select records as well as display information relevant to the selection.','Info and search/select Window','Info Window','773101d1-adc8-4a50-a46e-c0256a61d0e6','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),'Y',40,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,60,'N','N',210605,50,'Y',202263,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Alphanumeric identifier of the entity','Name','06b5cc6d-bb15-4d10-bb86-e3fc38797f7b','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',50,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:37 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,255,'N','N',210606,60,'Y',202264,'N','A description is limited to 255 characters.','Optional short description of the record','Description','9e56c072-3e01-4f88-91ba-03cf0b163fae','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',60,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:38 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (3,'N',200100,2000,'N','N',210607,70,'Y',202265,'N','The Help field contains a hint, comment or help about the use of this item.','Comment or Hint','Comment/Help','581926dc-f5e1-46e9-8665-3f789295a63d','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),'Y',70,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210610,80,'Y',202266,'N','RelatedInfo_ID','62744643-45df-4d01-bd95-5214c5f11c1f','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),'Y',80,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210611,90,'Y',202267,'N','RelatedColumn_ID','40fc94fc-bd49-4bca-b9c1-c28e15b399fa','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',90,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:43 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210609,100,'Y',202268,'N','The Sequence indicates the order of records','Method of ordering records; lowest number comes first','Sequence','170ca2d8-b832-4a60-ba2c-e580f2940fd3','Y','N','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',100,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:44 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210597,'Y',202269,'N','InfoRelated','0f22c3e7-2e28-4e9c-a923-57a0678a5d42','N','N',0,0,TO_TIMESTAMP('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210627,'N','N','N','N',10,'N',11,'N',302,'N','Y','b208fbe3-a0f8-4821-a6c0-0045e1ca2459','Y','FieldLength','Length of the column in the database','The Length indicates the length of a column as defined in the database.','Length','Y',TO_TIMESTAMP('2013-07-06 09:39:08','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:08','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN FieldLength NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210628,'N','N','N','N',60,'N',10,'N',616,'N','Y','46b815b8-a798-41d6-8478-69312fceebd5','Y','VFormat','Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09"','<B>Validation elements:</B>
|
||||
(Space) any character
|
||||
_ Space (fixed character)
|
||||
l any Letter a..Z NO space
|
||||
L any Letter a..Z NO space converted to upper case
|
||||
o any Letter a..Z or space
|
||||
O any Letter a..Z or space converted to upper case
|
||||
a any Letters & Digits NO space
|
||||
A any Letters & Digits NO space converted to upper case
|
||||
c any Letters & Digits or space
|
||||
C any Letters & Digits or space converted to upper case
|
||||
0 Digits 0..9 NO space
|
||||
9 Digits 0..9 or space
|
||||
|
||||
Example of format "(000)_000-0000"','Value Format','Y',TO_TIMESTAMP('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:09 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN VFormat VARCHAR(60) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:10 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210629,'N','N','N','N',20,'N',10,'N',1060,'N','Y','d0552bae-1dce-4b08-90b8-837cf539e723','Y','ValueMin','Minimum Value for a field','The Minimum Value indicates the lowest allowable value for a field.','Min. Value','Y',TO_TIMESTAMP('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:09','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:10 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN ValueMin VARCHAR(20) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:11 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210630,'N','N','N','N',20,'N',10,'N',1059,'N','Y','c9bc1c74-54bf-4b41-8570-39187b0797b5','Y','ValueMax','Maximum Value for a field','The Maximum Value indicates the highest allowable value for a field','Max. Value','Y',TO_TIMESTAMP('2013-07-06 09:39:10','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:10','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:11 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN ValueMax VARCHAR(20) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210631,'N','N','N','N',2000,'N',14,'N',272,'N','Y','097b9d01-290a-4757-9e4d-d1befc2bf0d0','Y','DefaultValue','Default value hierarchy, separated by ;','The defaults are evaluated in the order of definition, the first not null value becomes the default value of the column. The values are separated by comma or semicolon. a) Literals:. ''Text'' or 123 b) Variables - in format @Variable@ - Login e.g. #Date, #AD_Org_ID, #AD_Client_ID - Accounting Schema: e.g. $C_AcctSchema_ID, $C_Calendar_ID - Global defaults: e.g. DateFormat - Window values (all Picks, CheckBoxes, RadioButtons, and DateDoc/DateAcct) c) SQL code with the tag: @SQL=SELECT something AS DefaultValue FROM ... The SQL statement can contain variables. There can be no other value other than the SQL statement. The default is only evaluated, if no user preference is defined. Default definitions are ignored for record columns as Key, Parent, Client as well as Buttons.','Default Logic','Y',TO_TIMESTAMP('2013-07-06 09:39:11','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:11','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN DefaultValue VARCHAR(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,897,210632,'N','N','N','N',1,'N',20,'N',410,'N','Y','3fb5673b-b0b8-49e9-b5d4-8425b0e98c1c','Y','IsSameLine','Displayed on same line as previous field','The Same Line checkbox indicates that the field will display on the same line as the previous field.','Same Line','Y',TO_TIMESTAMP('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_TIMESTAMP('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
ALTER TABLE AD_InfoColumn ADD COLUMN IsSameLine CHAR(1) DEFAULT NULL CHECK (IsSameLine IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:12 AM GMT
|
||||
UPDATE AD_Field SET SortNo=NULL, DisplayLength=10, SeqNo=120, AD_Org_ID=0, SeqNoGrid=120, IsDisplayedGrid='Y', XPosition=1, AD_Client_ID=0,Updated=TO_TIMESTAMP('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=201622
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:13 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,10,'N','N',210627,160,'Y',202279,'N','The Length indicates the length of a column as defined in the database.','Length of the column in the database','Length','b65197bf-8cbb-41a5-a5ab-f0931d027048','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:12','YYYY-MM-DD HH24:MI:SS'),'Y',160,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:14 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,1,'Y','N',210632,'Y',202280,'N','The Same Line checkbox indicates that the field will display on the same line as the previous field.','Displayed on same line as previous field','Same Line','3efca7e4-299b-46c6-8781-617d430aec7e','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:13','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:13','YYYY-MM-DD HH24:MI:SS'),'Y','Y',5,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:14 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (3,'N',844,2000,'N','N',210631,'Y',202281,'N','The defaults are evaluated in the order of definition, the first not null value becomes the default value of the column. The values are separated by comma or semicolon. a) Literals:. ''Text'' or 123 b) Variables - in format @Variable@ - Login e.g. #Date, #AD_Org_ID, #AD_Client_ID - Accounting Schema: e.g. $C_AcctSchema_ID, $C_Calendar_ID - Global defaults: e.g. DateFormat - Window values (all Picks, CheckBoxes, RadioButtons, and DateDoc/DateAcct) c) SQL code with the tag: @SQL=SELECT something AS DefaultValue FROM ... The SQL statement can contain variables. There can be no other value other than the SQL statement. The default is only evaluated, if no user preference is defined. Default definitions are ignored for record columns as Key, Parent, Client as well as Buttons.','Default value hierarchy, separated by ;','Default Logic','75bff2e7-1cae-463b-871c-3b01cf19b99e','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:15 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,20,'N','N',210629,'Y',202282,'N','The Minimum Value indicates the lowest allowable value for a field.','Minimum Value for a field','Min. Value','40713f08-8b02-4742-85ba-de5290b8748c','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:14','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:15 AM GMT
|
||||
UPDATE AD_Field SET SortNo=NULL, DisplayLength=30, SeqNo=NULL, AD_Org_ID=0, SeqNoGrid=NULL, XPosition=1, AD_Client_ID=0, ColumnSpan=5,Updated=TO_TIMESTAMP('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=201624
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:16 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,60,'Y','N',210628,'Y',202283,'N','<B>Validation elements:</B>
|
||||
(Space) any character
|
||||
_ Space (fixed character)
|
||||
l any Letter a..Z NO space
|
||||
L any Letter a..Z NO space converted to upper case
|
||||
o any Letter a..Z or space
|
||||
O any Letter a..Z or space converted to upper case
|
||||
a any Letters & Digits NO space
|
||||
A any Letters & Digits NO space converted to upper case
|
||||
c any Letters & Digits or space
|
||||
C any Letters & Digits or space converted to upper case
|
||||
0 Digits 0..9 NO space
|
||||
9 Digits 0..9 or space
|
||||
|
||||
Example of format "(000)_000-0000"','Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09"','Value Format','dd8baba9-3e0b-4cac-a20f-e2f4e74a3cea','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:15','YYYY-MM-DD HH24:MI:SS'),'Y','Y',3,'N',0,3,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:39:16 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',844,20,'Y','N',210630,'Y',202284,'N','The Maximum Value indicates the highest allowable value for a field','Maximum Value for a field','Max. Value','80e3458a-8a1b-4333-be68-3a4dd49d3c32','Y','N',0,0,TO_TIMESTAMP('2013-07-06 09:39:16','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-07-06 09:39:16','YYYY-MM-DD HH24:MI:SS'),'Y','Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210598
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADClient_ADInfoRelated FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210599
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADOrg_ADInfoRelated FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210602
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT CreatedBy_ADInfoRelated FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210604
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT UpdatedBy_ADInfoRelated FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADInfoWindow_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210608
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADInfoWindow_ADInfoRelated FOREIGN KEY (AD_InfoWindow_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedInfo_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210610
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedInfo_ADInfoRelated FOREIGN KEY (RelatedInfo_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedColumn_ADInfoRelated', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210611
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedColumn_ADInfoRelated FOREIGN KEY (RelatedColumn_ID) REFERENCES ad_infocolumn(ad_infocolumn_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:44 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='adprocess_adinfowindow',Updated=TO_TIMESTAMP('2014-01-26 14:51:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210944
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202259
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202260
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202262
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202258
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=202263
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=202268
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202266
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=202267
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=202264
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=202265
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=202261
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:10 PM COT
|
||||
UPDATE AD_Column SET Name='AD_InfoRelated_UU',Updated=TO_TIMESTAMP('2014-01-26 15:07:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210612
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Element SET Name='AD_InfoRelated_UU', PrintName='AD_InfoRelated_UU',Updated=TO_TIMESTAMP('2014-01-26 15:07:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Column SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL, AD_Element_ID=202559 WHERE UPPER(ColumnName)='AD_INFORELATED_UU' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Field SET Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202559) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202559)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Column', PrintName='Related Info Column',Updated=TO_TIMESTAMP('2014-01-26 15:07:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL, AD_Element_ID=202558 WHERE UPPER(ColumnName)='RELATEDCOLUMN_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202558) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Column', Name='Related Info Column' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202558)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Window', PrintName='Related Info Window',Updated=TO_TIMESTAMP('2014-01-26 15:07:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL, AD_Element_ID=202557 WHERE UPPER(ColumnName)='RELATEDINFO_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202557) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Window', Name='Related Info Window' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202557)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:08:42 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID) VALUES ('I','Related Information',200253,'D','ffd7193a-7404-450c-82f4-dad988da87b1','Related Information','Y',TO_TIMESTAMP('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:10 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_TIMESTAMP('2014-01-26 16:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200100
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:46 PM COT
|
||||
UPDATE AD_Table SET AD_Window_ID=385, IsChangeLog='Y',Updated=TO_TIMESTAMP('2014-01-26 16:57:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200089
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401261340_IDEMPIERE-1045.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
|
||||
package org.adempiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.model.I_AD_InfoRelated;
|
||||
import org.compiere.model.MInfoColumn;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.model.X_AD_InfoRelated;
|
||||
|
||||
public class MInfoRelated extends X_AD_InfoRelated implements I_AD_InfoRelated {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 7899684001732574833L;
|
||||
|
||||
public MInfoRelated(Properties ctx, int AD_InfoRelated_ID, String trxName) {
|
||||
super(ctx, AD_InfoRelated_ID, trxName);
|
||||
}
|
||||
|
||||
public MInfoRelated(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
}
|
||||
|
||||
public MInfoColumn getLinkInfoColumn() {
|
||||
if (log.isLoggable(Level.INFO)) log.info("Link Column ID: ----- : " + getRelatedColumn_ID());
|
||||
|
||||
MInfoColumn infoCol = (MInfoColumn) new Query(getCtx(), "AD_InfoColumn", "AD_InfoColumn_ID=?", get_TrxName())
|
||||
.setParameters(getRelatedColumn_ID())
|
||||
.first();
|
||||
|
||||
return infoCol;
|
||||
}
|
||||
|
||||
public String getLinkColumnName() {
|
||||
MInfoColumn infoCol = getLinkInfoColumn();
|
||||
if (infoCol != null)
|
||||
return infoCol.getSelectClause();
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,218 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 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 AD_InfoRelated
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.0
|
||||
*/
|
||||
public interface I_AD_InfoRelated
|
||||
{
|
||||
|
||||
/** TableName=AD_InfoRelated */
|
||||
public static final String Table_Name = "AD_InfoRelated";
|
||||
|
||||
/** AD_Table_ID=200089 */
|
||||
public static final int Table_ID = 200089;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 4 - System
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(4);
|
||||
|
||||
/** 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_InfoRelated_ID */
|
||||
public static final String COLUMNNAME_AD_InfoRelated_ID = "AD_InfoRelated_ID";
|
||||
|
||||
/** Set InfoRelated */
|
||||
public void setAD_InfoRelated_ID (int AD_InfoRelated_ID);
|
||||
|
||||
/** Get InfoRelated */
|
||||
public int getAD_InfoRelated_ID();
|
||||
|
||||
/** Column name AD_InfoRelated_UU */
|
||||
public static final String COLUMNNAME_AD_InfoRelated_UU = "AD_InfoRelated_UU";
|
||||
|
||||
/** Set InfoRelated */
|
||||
public void setAD_InfoRelated_UU (String AD_InfoRelated_UU);
|
||||
|
||||
/** Get InfoRelated */
|
||||
public String getAD_InfoRelated_UU();
|
||||
|
||||
/** Column name AD_InfoWindow_ID */
|
||||
public static final String COLUMNNAME_AD_InfoWindow_ID = "AD_InfoWindow_ID";
|
||||
|
||||
/** Set Info Window.
|
||||
* Info and search/select Window
|
||||
*/
|
||||
public void setAD_InfoWindow_ID (int AD_InfoWindow_ID);
|
||||
|
||||
/** Get Info Window.
|
||||
* Info and search/select Window
|
||||
*/
|
||||
public int getAD_InfoWindow_ID();
|
||||
|
||||
public org.compiere.model.I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException;
|
||||
|
||||
/** 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 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 Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name Help */
|
||||
public static final String COLUMNNAME_Help = "Help";
|
||||
|
||||
/** Set Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help);
|
||||
|
||||
/** Get Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public String getHelp();
|
||||
|
||||
/** 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 Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name RelatedColumn_ID */
|
||||
public static final String COLUMNNAME_RelatedColumn_ID = "RelatedColumn_ID";
|
||||
|
||||
/** Set RelatedColumn_ID */
|
||||
public void setRelatedColumn_ID (int RelatedColumn_ID);
|
||||
|
||||
/** Get RelatedColumn_ID */
|
||||
public int getRelatedColumn_ID();
|
||||
|
||||
public org.compiere.model.I_AD_InfoColumn getRelatedColumn() throws RuntimeException;
|
||||
|
||||
/** Column name RelatedInfo_ID */
|
||||
public static final String COLUMNNAME_RelatedInfo_ID = "RelatedInfo_ID";
|
||||
|
||||
/** Set RelatedInfo_ID */
|
||||
public void setRelatedInfo_ID (int RelatedInfo_ID);
|
||||
|
||||
/** Get RelatedInfo_ID */
|
||||
public int getRelatedInfo_ID();
|
||||
|
||||
public org.compiere.model.I_AD_InfoWindow getRelatedInfo() throws RuntimeException;
|
||||
|
||||
/** Column name SeqNo */
|
||||
public static final String COLUMNNAME_SeqNo = "SeqNo";
|
||||
|
||||
/** Set Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo);
|
||||
|
||||
/** Get Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public int getSeqNo();
|
||||
|
||||
/** Column name Updated */
|
||||
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();
|
||||
}
|
|
@ -16,12 +16,18 @@
|
|||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.model.MInfoRelated;
|
||||
import org.compiere.model.AccessSqlParser.TableInfo;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
* Info Window Model
|
||||
|
@ -34,7 +40,7 @@ public class MInfoWindow extends X_AD_InfoWindow
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -8062633099053363108L;
|
||||
private static final long serialVersionUID = -4228782755777501270L;
|
||||
|
||||
/**
|
||||
* Standard Constructor
|
||||
|
@ -77,6 +83,50 @@ public class MInfoWindow extends X_AD_InfoWindow
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali
|
||||
* @param AD_InfoWindow_ID
|
||||
* @return
|
||||
*/
|
||||
public static MInfoWindow getInfoWindow(int AD_InfoWindow_ID) {
|
||||
|
||||
if (AD_InfoWindow_ID != 0) {
|
||||
|
||||
MInfoWindow infoWin = (MInfoWindow)new Query(Env.getCtx(), Table_Name, "AD_InfoWindow_ID=?", null)
|
||||
.setParameters(AD_InfoWindow_ID)
|
||||
.first();
|
||||
|
||||
if (infoWin != null)
|
||||
return infoWin;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali
|
||||
* @param requery
|
||||
* @return
|
||||
*/
|
||||
private MInfoRelated[] m_infoRelated;
|
||||
|
||||
public MInfoRelated[] getInfoRelated(boolean requery) {
|
||||
if ((this.m_infoRelated != null) && (!requery)) {
|
||||
set_TrxName(this.m_infoRelated, get_TrxName());
|
||||
return this.m_infoRelated;
|
||||
}
|
||||
|
||||
List<MInfoRelated> list = new Query(getCtx(), MInfoRelated.Table_Name, "AD_InfoWindow_ID=?", get_TrxName())
|
||||
.setParameters(getAD_InfoWindow_ID())
|
||||
.setOnlyActiveRecords(true)
|
||||
.setOrderBy("SeqNo")
|
||||
.list();
|
||||
|
||||
m_infoRelated = list.toArray(new MInfoRelated[list.size()]);
|
||||
|
||||
return m_infoRelated;
|
||||
}
|
||||
|
||||
public MInfoColumn[] getInfoColumns(TableInfo[] tableInfos) {
|
||||
Query query = new Query(getCtx(), MTable.get(getCtx(), I_AD_InfoColumn.Table_ID), I_AD_InfoColumn.COLUMNNAME_AD_InfoWindow_ID+"=?", get_TrxName());
|
||||
List<MInfoColumn> list = query.setParameters(getAD_InfoWindow_ID())
|
||||
|
@ -100,6 +150,103 @@ public class MInfoWindow extends X_AD_InfoWindow
|
|||
return list.toArray(new MInfoColumn[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali
|
||||
*/
|
||||
private MInfoColumn[] m_infocolumns = null;
|
||||
|
||||
public MInfoColumn[] getInfoColumns(boolean requery, boolean checkDisplay) {
|
||||
if ((this.m_infocolumns != null) && (!requery)) {
|
||||
set_TrxName(this.m_infocolumns, get_TrxName());
|
||||
return this.m_infocolumns;
|
||||
}
|
||||
if (checkDisplay) {
|
||||
List<MInfoColumn> list = new Query(getCtx(), MInfoColumn.Table_Name, "AD_InfoWindow_ID=? AND IsDisplayed='Y'", get_TrxName())
|
||||
.setParameters(get_ID())
|
||||
.setOrderBy("SeqNo")
|
||||
.list();
|
||||
this.m_infocolumns = list.toArray(new MInfoColumn[list.size()]);
|
||||
} else {
|
||||
List<MInfoColumn> list = new Query(getCtx(), MInfoColumn.Table_Name, "AD_InfoWindow_ID=?", get_TrxName())
|
||||
.setParameters(get_ID())
|
||||
.setOrderBy("SeqNo")
|
||||
.list();
|
||||
this.m_infocolumns = list.toArray(new MInfoColumn[list.size()]);
|
||||
}
|
||||
|
||||
return this.m_infocolumns;
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali
|
||||
* @return
|
||||
*/
|
||||
public String getSql(){
|
||||
|
||||
String fromsql = getFromClause();
|
||||
String oclause = getOtherClause();
|
||||
if (oclause == null)
|
||||
oclause=" ";
|
||||
|
||||
//boolean success = true;
|
||||
MInfoColumn[] mColumns = getInfoColumns(true,true);
|
||||
StringBuilder sql = new StringBuilder("SELECT ");
|
||||
int size = mColumns.length;//get_ColumnCount();
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
if (i != 0) // can also use if i>0
|
||||
sql.append(",");
|
||||
sql.append(mColumns[i].getSelectClause());//getColumnSQL()); // Normal and Virtual Column
|
||||
}
|
||||
sql.append(" FROM ").append(fromsql)//getTableName())
|
||||
//.append(" WHERE ")
|
||||
//.append(getWhereClause(false))
|
||||
.append(oclause);
|
||||
//.append("ORDER BY SeqNo"); //.append(get_WhereClause(false));
|
||||
|
||||
//
|
||||
// int index = -1;
|
||||
//if (CLogMgt.isLevelFinest())
|
||||
//log.finest(getWhereClause(true));
|
||||
log.info("Generated SQL -- getSql: "+ sql.toString());
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
public boolean validateSql(){
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
String sql = getSql();
|
||||
try
|
||||
{
|
||||
String countSql = Msg.parseTranslation(Env.getCtx(), sql.toString()); // Variables
|
||||
countSql = MRole.getDefault().addAccessSQL(countSql, MTable.getTableName(Env.getCtx(), getAD_Table_ID()),// getTableName(),
|
||||
MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO);
|
||||
|
||||
pstmt = DB.prepareStatement(countSql, null);
|
||||
// pstmt.setString(1, p_tableName);
|
||||
rs = pstmt.executeQuery();
|
||||
while (rs.next())
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
//ADialog.error(WindowNo, c, AD_Message)
|
||||
//Env.getUi().showError(0, null, sql.toString() + "<br> " + e.getMessage());
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
// String error = e.toString();
|
||||
// show error to user and return: TODO
|
||||
return false;
|
||||
}
|
||||
finally {
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
return true;
|
||||
} // validate sql
|
||||
|
||||
@Override
|
||||
protected boolean beforeSave(boolean newRecord) {
|
||||
AccessSqlParser parser = new AccessSqlParser("SELECT * FROM " + getFromClause());
|
||||
|
|
|
@ -0,0 +1,270 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 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.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_InfoRelated
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.0 - $Id$ */
|
||||
public class X_AD_InfoRelated extends PO implements I_AD_InfoRelated, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20140126L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_InfoRelated (Properties ctx, int AD_InfoRelated_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_InfoRelated_ID, trxName);
|
||||
/** if (AD_InfoRelated_ID == 0)
|
||||
{
|
||||
setAD_InfoRelated_ID (0);
|
||||
setAD_InfoWindow_ID (0);
|
||||
setName (null);
|
||||
setRelatedColumn_ID (0);
|
||||
// 0
|
||||
setRelatedInfo_ID (0);
|
||||
// 0
|
||||
setSeqNo (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_InfoRelated (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 4 - System
|
||||
*/
|
||||
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_AD_InfoRelated[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set InfoRelated.
|
||||
@param AD_InfoRelated_ID InfoRelated */
|
||||
public void setAD_InfoRelated_ID (int AD_InfoRelated_ID)
|
||||
{
|
||||
if (AD_InfoRelated_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_InfoRelated_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_InfoRelated_ID, Integer.valueOf(AD_InfoRelated_ID));
|
||||
}
|
||||
|
||||
/** Get InfoRelated.
|
||||
@return InfoRelated */
|
||||
public int getAD_InfoRelated_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoRelated_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set InfoRelated.
|
||||
@param AD_InfoRelated_UU InfoRelated */
|
||||
public void setAD_InfoRelated_UU (String AD_InfoRelated_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_AD_InfoRelated_UU, AD_InfoRelated_UU);
|
||||
}
|
||||
|
||||
/** Get InfoRelated.
|
||||
@return InfoRelated */
|
||||
public String getAD_InfoRelated_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_InfoRelated_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_InfoWindow)MTable.get(getCtx(), org.compiere.model.I_AD_InfoWindow.Table_Name)
|
||||
.getPO(getAD_InfoWindow_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Info Window.
|
||||
@param AD_InfoWindow_ID
|
||||
Info and search/select Window
|
||||
*/
|
||||
public void setAD_InfoWindow_ID (int AD_InfoWindow_ID)
|
||||
{
|
||||
if (AD_InfoWindow_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_InfoWindow_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID));
|
||||
}
|
||||
|
||||
/** Get Info Window.
|
||||
@return Info and search/select Window
|
||||
*/
|
||||
public int getAD_InfoWindow_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoWindow_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Comment/Help.
|
||||
@param Help
|
||||
Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help)
|
||||
{
|
||||
set_Value (COLUMNNAME_Help, Help);
|
||||
}
|
||||
|
||||
/** Get Comment/Help.
|
||||
@return Comment or Hint
|
||||
*/
|
||||
public String getHelp ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Help);
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_InfoColumn getRelatedColumn() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_InfoColumn)MTable.get(getCtx(), org.compiere.model.I_AD_InfoColumn.Table_Name)
|
||||
.getPO(getRelatedColumn_ID(), get_TrxName()); }
|
||||
|
||||
/** Set RelatedColumn_ID.
|
||||
@param RelatedColumn_ID RelatedColumn_ID */
|
||||
public void setRelatedColumn_ID (int RelatedColumn_ID)
|
||||
{
|
||||
if (RelatedColumn_ID < 1)
|
||||
set_Value (COLUMNNAME_RelatedColumn_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_RelatedColumn_ID, Integer.valueOf(RelatedColumn_ID));
|
||||
}
|
||||
|
||||
/** Get RelatedColumn_ID.
|
||||
@return RelatedColumn_ID */
|
||||
public int getRelatedColumn_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_RelatedColumn_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_InfoWindow getRelatedInfo() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_InfoWindow)MTable.get(getCtx(), org.compiere.model.I_AD_InfoWindow.Table_Name)
|
||||
.getPO(getRelatedInfo_ID(), get_TrxName()); }
|
||||
|
||||
/** Set RelatedInfo_ID.
|
||||
@param RelatedInfo_ID RelatedInfo_ID */
|
||||
public void setRelatedInfo_ID (int RelatedInfo_ID)
|
||||
{
|
||||
if (RelatedInfo_ID < 1)
|
||||
set_Value (COLUMNNAME_RelatedInfo_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_RelatedInfo_ID, Integer.valueOf(RelatedInfo_ID));
|
||||
}
|
||||
|
||||
/** Get RelatedInfo_ID.
|
||||
@return RelatedInfo_ID */
|
||||
public int getRelatedInfo_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_RelatedInfo_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Sequence.
|
||||
@param SeqNo
|
||||
Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
|
||||
}
|
||||
|
||||
/** Get Sequence.
|
||||
@return Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public int getSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
package org.adempiere.webui.info;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
@ -13,6 +14,7 @@ import java.util.Properties;
|
|||
import java.util.TreeMap;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.model.MInfoRelated;
|
||||
import org.adempiere.webui.AdempiereWebUI;
|
||||
import org.adempiere.webui.component.Borderlayout;
|
||||
import org.adempiere.webui.component.Button;
|
||||
|
@ -22,8 +24,15 @@ import org.adempiere.webui.component.ConfirmPanel;
|
|||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.GridFactory;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListModelTable;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.adempiere.webui.component.Tab;
|
||||
import org.adempiere.webui.component.Tabbox;
|
||||
import org.adempiere.webui.component.Tabpanel;
|
||||
import org.adempiere.webui.component.Tabpanels;
|
||||
import org.adempiere.webui.component.Tabs;
|
||||
import org.adempiere.webui.component.WListbox;
|
||||
import org.adempiere.webui.editor.WEditor;
|
||||
import org.adempiere.webui.editor.WTableDirEditor;
|
||||
import org.adempiere.webui.editor.WebEditorFactory;
|
||||
|
@ -32,6 +41,7 @@ import org.adempiere.webui.event.ValueChangeListener;
|
|||
import org.adempiere.webui.panel.InfoPanel;
|
||||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.compiere.minigrid.ColumnInfo;
|
||||
import org.compiere.minigrid.EmbedWinInfo;
|
||||
import org.compiere.minigrid.IDColumn;
|
||||
import org.compiere.model.AccessSqlParser;
|
||||
import org.compiere.model.AccessSqlParser.TableInfo;
|
||||
|
@ -56,6 +66,7 @@ import org.zkoss.zk.ui.Page;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.event.SwipeEvent;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Div;
|
||||
|
@ -68,14 +79,14 @@ import org.zkoss.zul.Vbox;
|
|||
/**
|
||||
* AD_InfoWindow implementation
|
||||
* @author hengsin
|
||||
* @contributor red1 IDEMPIERE-1711 with final review by Hengsin
|
||||
*
|
||||
* @contributor red1 IDEMPIERE-1711 Process button (reviewed by Hengsin)
|
||||
* @contributor xolali IDEMPIERE-1045 Sub-Info Tabs (reviewed by red1)
|
||||
*/
|
||||
public class InfoWindow extends InfoPanel implements ValueChangeListener, EventListener<Event> {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -8641832995439101215L;
|
||||
private static final long serialVersionUID = -5198550045241794995L;
|
||||
|
||||
protected Grid parameterGrid;
|
||||
private Borderlayout layout;
|
||||
|
@ -85,6 +96,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
protected List<WEditor> identifiers;
|
||||
protected Properties infoContext;
|
||||
|
||||
/** embedded Panel **/
|
||||
Tabbox embeddedPane = new Tabbox();
|
||||
ArrayList <EmbedWinInfo> embeddedWinList = new ArrayList <EmbedWinInfo>();
|
||||
|
||||
/** Max Length of Fields */
|
||||
public static final int FIELDLENGTH = 20;
|
||||
|
||||
|
@ -136,8 +151,21 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
}
|
||||
//red1 -- end --
|
||||
|
||||
//Xolali IDEMPIERE-1045
|
||||
contentPanel.addActionListener(new EventListener<Event>() {
|
||||
public void onEvent(Event event) throws Exception {
|
||||
int row = contentPanel.getSelectedRow();
|
||||
if (row >= 0) {
|
||||
for (EmbedWinInfo embed : embeddedWinList) {
|
||||
refresh(contentPanel.getValueAt(row,0),embed);
|
||||
}// refresh for all
|
||||
}
|
||||
}
|
||||
}); //xolali --end-
|
||||
|
||||
infoContext = new Properties(Env.getCtx());
|
||||
p_loadedOK = loadInfoDefinition();
|
||||
loadInfoRelatedTabs();
|
||||
if (loadedOK()) {
|
||||
if (isLookup()) {
|
||||
Env.clearTabContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO);
|
||||
|
@ -261,6 +289,89 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
}
|
||||
}
|
||||
|
||||
//private MInfoColumn[] topinfoColumns;//infoWindow.getInfoColumns(tableInfos);
|
||||
private boolean loadInfoRelatedTabs() {
|
||||
if (infoWindow == null)
|
||||
return false;
|
||||
|
||||
// topinfoColumns = infoWindow.getInfoColumns();
|
||||
MInfoRelated[] relatedInfoList = infoWindow.getInfoRelated(true);
|
||||
Tabpanels tabPanels = new Tabpanels();
|
||||
Tabs tabs = new Tabs();
|
||||
|
||||
if (relatedInfoList.length > 0) { // setup the panel
|
||||
|
||||
//embeddedPane.setTitle(Msg.translate(Env.getCtx(), "Related Information"));
|
||||
embeddedPane.setHeight("100%");
|
||||
//tabPanels = new Tabpanels();
|
||||
embeddedPane.appendChild(tabPanels);
|
||||
//tabs = new Tabs();
|
||||
embeddedPane.appendChild(tabs);
|
||||
|
||||
}
|
||||
|
||||
// for(int i=0; i < relatedinfoList.length - 1 ; i++) {
|
||||
for (MInfoRelated relatedInfo:relatedInfoList) {
|
||||
|
||||
String tableName = null;
|
||||
int infoRelatedID = relatedInfo.getRelatedInfo_ID();
|
||||
|
||||
MInfoWindow embedInfo = new MInfoWindow(Env.getCtx(), infoRelatedID, null);
|
||||
|
||||
AccessSqlParser sqlParser = new AccessSqlParser("SELECT * FROM " + embedInfo.getFromClause());
|
||||
TableInfo[] tableInfos = sqlParser.getTableInfo(0);
|
||||
if (tableInfos[0].getSynonym() != null && tableInfos[0].getSynonym().trim().length() > 0){
|
||||
tableName = tableInfos[0].getSynonym().trim();
|
||||
}
|
||||
|
||||
WListbox embeddedTbl = new WListbox();
|
||||
String m_sqlEmbedded;
|
||||
|
||||
//MInfoWindow.getInfoWindow(infoRelatedID);
|
||||
|
||||
if (embedInfo != null) {
|
||||
ArrayList<ColumnInfo> list = new ArrayList<ColumnInfo>();
|
||||
list = getInfoColumnslayout(embedInfo);
|
||||
// Convert ArrayList to Array
|
||||
ColumnInfo[] s_layoutEmbedded = new ColumnInfo[list.size()];
|
||||
list.toArray(s_layoutEmbedded);
|
||||
|
||||
/** From Clause */
|
||||
String s_sqlFrom = embedInfo.getFromClause();
|
||||
/** Where Clause */
|
||||
String s_sqlWhere = relatedInfo.getLinkColumnName() + "=?";
|
||||
m_sqlEmbedded = embeddedTbl.prepareTable(s_layoutEmbedded, s_sqlFrom, s_sqlWhere, false, tableName);
|
||||
|
||||
embeddedTbl.setMultiSelection(false);
|
||||
|
||||
embeddedTbl.autoSize();
|
||||
|
||||
embeddedTbl.getModel().addTableModelListener(this);
|
||||
|
||||
//Xolali - add embeddedTbl to list, add m_sqlembedded to list
|
||||
EmbedWinInfo ewinInfo = new EmbedWinInfo(embedInfo,embeddedTbl,m_sqlEmbedded,relatedInfo.getLinkColumnName(), relatedInfo.getLinkInfoColumn());
|
||||
embeddedWinList.add(ewinInfo);
|
||||
|
||||
MInfoWindow riw = (MInfoWindow) relatedInfo.getRelatedInfo();
|
||||
String tabTitle;
|
||||
if (riw != null)
|
||||
tabTitle = Util.cleanAmp(riw.get_Translation("Name"));
|
||||
else
|
||||
tabTitle = relatedInfo.getName();
|
||||
Tab tab = new Tab(tabTitle);
|
||||
tabs.appendChild(tab);
|
||||
Tabpanel desktopTabPanel = new Tabpanel();
|
||||
//desktopTabPanel.
|
||||
desktopTabPanel.setHeight("100%");
|
||||
desktopTabPanel.appendChild(embeddedTbl);
|
||||
tabPanels.appendChild(desktopTabPanel);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void prepareTable() {
|
||||
List<ColumnInfo> list = new ArrayList<ColumnInfo>();
|
||||
String keyTableAlias = tableInfos[0].getSynonym() != null && tableInfos[0].getSynonym().trim().length() > 0
|
||||
|
@ -566,7 +677,51 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
div.setVflex("1");
|
||||
div.setHflex("1");
|
||||
div.appendChild(contentPanel);
|
||||
center.appendChild(div);
|
||||
|
||||
Borderlayout inner = new Borderlayout();
|
||||
inner.setWidth("100%");
|
||||
inner.setHeight("100%");
|
||||
int height = SessionManager.getAppDesktop().getClientInfo().desktopHeight * 90 / 100;
|
||||
if (isLookup())
|
||||
inner.setStyle("border: none; position: relative; ");
|
||||
else
|
||||
inner.setStyle("border: none; position: absolute; ");
|
||||
inner.appendCenter(div);
|
||||
//true will conflict with listbox scrolling
|
||||
inner.getCenter().setAutoscroll(false);
|
||||
|
||||
if (embeddedWinList.size() > 0) {
|
||||
South south = new South();
|
||||
int detailHeight = (height * 25 / 100);
|
||||
south.setHeight(detailHeight + "px");
|
||||
south.setAutoscroll(true);
|
||||
south.setCollapsible(true);
|
||||
south.setSplittable(true);
|
||||
south.setTitle(Msg.translate(Env.getCtx(), "Related Information"));
|
||||
south.setTooltiptext(Msg.translate(Env.getCtx(), "Related Information"));
|
||||
|
||||
south.addEventListener(Events.ON_SWIPE, new EventListener<SwipeEvent>() {
|
||||
@Override
|
||||
public void onEvent(SwipeEvent event) throws Exception {
|
||||
South south = (South) event.getTarget();
|
||||
if ("down".equals(event.getSwipeDirection())) {
|
||||
south.setOpen(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
south.setSclass("south-collapsible-with-title");
|
||||
south.setAutoscroll(true);
|
||||
//south.sets
|
||||
inner.appendChild(south);
|
||||
embeddedPane.setSclass("info-product-tabbedpane");
|
||||
embeddedPane.setVflex("1");
|
||||
embeddedPane.setHflex("1");
|
||||
|
||||
south.appendChild(embeddedPane);
|
||||
|
||||
}// render embedded
|
||||
|
||||
center.appendChild(inner);
|
||||
}
|
||||
|
||||
protected void renderParameterPane(North north) {
|
||||
|
@ -983,7 +1138,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
return true;
|
||||
} // testCount
|
||||
|
||||
/** Return true if there is a 'IsActive' criteria */
|
||||
/** Return true if there is an 'IsActive' criteria */
|
||||
boolean hasIsActiveEditor() {
|
||||
for (WEditor editor : editors) {
|
||||
if (editor.getGridField() != null && "IsActive".equals(editor.getGridField().getColumnName())) {
|
||||
|
@ -993,4 +1148,222 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali IDEMPIERE-1045
|
||||
* getInfoColumnslayout(MInfoWindow info)
|
||||
*/
|
||||
public ArrayList<ColumnInfo> getInfoColumnslayout(MInfoWindow info){
|
||||
|
||||
AccessSqlParser sqlParser = new AccessSqlParser("SELECT * FROM " + info.getFromClause());
|
||||
TableInfo[] tableInfos = sqlParser.getTableInfo(0);
|
||||
|
||||
MInfoColumn[] infoColumns = info.getInfoColumns(tableInfos);
|
||||
ArrayList<ColumnInfo> list = new ArrayList<ColumnInfo>();
|
||||
String keyTableAlias = tableInfos[0].getSynonym() != null && tableInfos[0].getSynonym().trim().length() > 0
|
||||
? tableInfos[0].getSynonym()
|
||||
: tableInfos[0].getTableName();
|
||||
|
||||
String keySelectClause = keyTableAlias + "." + p_keyColumn;
|
||||
|
||||
for (MInfoColumn infoColumn : infoColumns)
|
||||
{
|
||||
if (infoColumn.isDisplayed(infoContext, p_WindowNo))
|
||||
{
|
||||
ColumnInfo columnInfo = null;
|
||||
if (infoColumn.getAD_Reference_ID() == DisplayType.ID)
|
||||
{
|
||||
if (infoColumn.getSelectClause().equalsIgnoreCase(keySelectClause))
|
||||
continue;
|
||||
|
||||
columnInfo = new ColumnInfo(infoColumn.get_Translation("Name"), infoColumn.getSelectClause(), DisplayType.getClass(infoColumn.getAD_Reference_ID(), true));
|
||||
}
|
||||
else if (DisplayType.isLookup(infoColumn.getAD_Reference_ID()))
|
||||
{
|
||||
if (infoColumn.getAD_Reference_ID() == DisplayType.List)
|
||||
{
|
||||
columnInfo = new ColumnInfo(infoColumn.get_Translation("Name"), infoColumn.getSelectClause(), ValueNamePair.class, (String)null);
|
||||
}
|
||||
else
|
||||
{
|
||||
GridField field = getGridField(infoColumn);
|
||||
columnInfo = createLookupColumnInfo(tableInfos, field, infoColumn);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
columnInfo = new ColumnInfo(infoColumn.get_Translation("Name"), infoColumn.getSelectClause(), DisplayType.getClass(infoColumn.getAD_Reference_ID(), true));
|
||||
}
|
||||
columnInfo.setColDescription(infoColumn.get_Translation("Description"));
|
||||
columnInfo.setGridField(getGridField(infoColumn));
|
||||
list.add(columnInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali IDEMPIERE-1045
|
||||
* refresh(Object obj, EmbedWinInfo relatedInfo)
|
||||
*/
|
||||
private void refresh(Object obj, EmbedWinInfo relatedInfo)
|
||||
{
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(relatedInfo.getInfoSql()); // delete get sql method from MInfoWindow
|
||||
if (log.isLoggable(Level.FINEST))
|
||||
log.finest(sql.toString());
|
||||
IDColumn ID = (IDColumn) obj;
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(relatedInfo.getInfoSql(), null);
|
||||
pstmt.setObject(1, ID.getRecord_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
loadEmbedded(rs, relatedInfo);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.log(Level.WARNING, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
} // refresh
|
||||
|
||||
/**
|
||||
* @author xolali IDEMPIERE-1045
|
||||
* loadEmbedded(ResultSet rs, EmbedWinInfo info)
|
||||
*/
|
||||
public void loadEmbedded(ResultSet rs, EmbedWinInfo info) throws SQLException{
|
||||
|
||||
ListModelTable model;
|
||||
ArrayList<ColumnInfo> list = new ArrayList<ColumnInfo>();
|
||||
list = getInfoColumnslayout(info.getInfowin());
|
||||
|
||||
// Convert ArrayList to Array
|
||||
ColumnInfo[] s_layoutEmbedded = new ColumnInfo[list.size()];
|
||||
list.toArray(s_layoutEmbedded);
|
||||
List<Object> data = new ArrayList<Object>();
|
||||
ArrayList<Object> lines = new ArrayList<Object>();
|
||||
|
||||
while (rs.next())
|
||||
{
|
||||
try {
|
||||
data = readData(rs, s_layoutEmbedded);
|
||||
} catch (SQLException e) {
|
||||
//Xolali - Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
lines.add(data);
|
||||
}
|
||||
model = new ListModelTable(lines);
|
||||
|
||||
WListbox content = (WListbox) info.getInfoTbl();
|
||||
content.setData(model, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @author xolali IDEMPIERE-1045
|
||||
* GridField getGridField(MInfoColumn infoColumn)
|
||||
*/
|
||||
private GridField getGridField(MInfoColumn infoColumn){
|
||||
String columnName = infoColumn.getColumnName();
|
||||
GridFieldVO vo = GridFieldVO.createParameter(infoContext, p_WindowNo, 0,
|
||||
columnName, infoColumn.get_Translation("Name"), infoColumn.getAD_Reference_ID(),
|
||||
infoColumn.getAD_Reference_Value_ID(), false, false);
|
||||
if (infoColumn.getAD_Val_Rule_ID() > 0) {
|
||||
vo.ValidationCode = infoColumn.getAD_Val_Rule().getCode();
|
||||
if (vo.lookupInfo != null) {
|
||||
vo.lookupInfo.ValidationCode = vo.ValidationCode;
|
||||
vo.lookupInfo.IsValidated = false;
|
||||
}
|
||||
}
|
||||
vo.DisplayLogic = infoColumn.getDisplayLogic() != null ? infoColumn.getDisplayLogic() : "";
|
||||
String desc = infoColumn.get_Translation("Description");
|
||||
vo.Description = desc != null ? desc : "";
|
||||
String help = infoColumn.get_Translation("Help");
|
||||
vo.Help = help != null ? help : "";
|
||||
GridField gridField = new GridField(vo);
|
||||
|
||||
return gridField;
|
||||
}
|
||||
|
||||
private ArrayList<Object> readData(ResultSet rs, ColumnInfo[] p_layout) throws SQLException {
|
||||
|
||||
int colOffset = 1; // columns start with 1
|
||||
ArrayList<Object> data = new ArrayList<Object>();
|
||||
for (int col = 0; col < p_layout.length; col++)
|
||||
{
|
||||
Object value = null;
|
||||
Class<?> c = p_layout[col].getColClass();
|
||||
int colIndex = col + colOffset;
|
||||
if (c == IDColumn.class)
|
||||
{
|
||||
value = new IDColumn(rs.getInt(colIndex));
|
||||
}
|
||||
else if (c == Boolean.class)
|
||||
value = new Boolean("Y".equals(rs.getString(colIndex)));
|
||||
else if (c == Timestamp.class)
|
||||
value = rs.getTimestamp(colIndex);
|
||||
else if (c == BigDecimal.class)
|
||||
value = rs.getBigDecimal(colIndex);
|
||||
else if (c == Double.class)
|
||||
value = new Double(rs.getDouble(colIndex));
|
||||
else if (c == Integer.class)
|
||||
value = new Integer(rs.getInt(colIndex));
|
||||
else if (c == KeyNamePair.class)
|
||||
{
|
||||
if (p_layout[col].isKeyPairCol())
|
||||
{
|
||||
String display = rs.getString(colIndex);
|
||||
int key = rs.getInt(colIndex+1);
|
||||
if (! rs.wasNull()) {
|
||||
value = new KeyNamePair(key, display);
|
||||
}
|
||||
colOffset++;
|
||||
}
|
||||
else
|
||||
{
|
||||
int key = rs.getInt(colIndex);
|
||||
if (! rs.wasNull()) {
|
||||
WEditor editor = editorMap.get(p_layout[col].getColSQL()); // rework this, it will fail
|
||||
if (editor != null)
|
||||
{
|
||||
editor.setValue(key);
|
||||
value = new KeyNamePair(key, editor.getDisplayTextForGridView(key));
|
||||
}
|
||||
else
|
||||
{
|
||||
value = new KeyNamePair(key, Integer.toString(key));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (c == ValueNamePair.class)
|
||||
{
|
||||
String key = rs.getString(colIndex);
|
||||
WEditor editor = editorMap.get(p_layout[col].getColSQL());
|
||||
if (editor != null)
|
||||
{
|
||||
value = new ValueNamePair(key, editor.getDisplayTextForGridView(key));
|
||||
}
|
||||
else
|
||||
{
|
||||
value = new ValueNamePair(key, key);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
value = rs.getString(colIndex);
|
||||
}
|
||||
data.add(value);
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* 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.minigrid;
|
||||
|
||||
import org.compiere.model.MInfoColumn;
|
||||
import org.compiere.model.MInfoWindow;
|
||||
|
||||
public class EmbedWinInfo {
|
||||
private MInfoWindow infowin;
|
||||
private IMiniTable infoTbl;
|
||||
private String infoSql;
|
||||
private String linkColumnSql;
|
||||
private MInfoColumn linkInfoColumn;
|
||||
private String linkColumnName;
|
||||
|
||||
public EmbedWinInfo(MInfoWindow iw, IMiniTable mt, String isql, String linkName, MInfoColumn linkColumn) {
|
||||
infowin=iw;
|
||||
infoTbl=mt;
|
||||
infoSql=isql;
|
||||
linkColumnSql=linkName;
|
||||
linkInfoColumn = linkColumn;
|
||||
linkColumnName = linkColumn.getName();
|
||||
}
|
||||
|
||||
public MInfoWindow getInfowin() {
|
||||
return infowin;
|
||||
}
|
||||
|
||||
public IMiniTable getInfoTbl() {
|
||||
return infoTbl;
|
||||
}
|
||||
|
||||
|
||||
public String getInfoSql() {
|
||||
return infoSql;
|
||||
}
|
||||
|
||||
public MInfoColumn getLinkColumn() {
|
||||
return linkInfoColumn;
|
||||
}
|
||||
|
||||
public String getLinkColumnSql() {
|
||||
return linkColumnSql;
|
||||
}
|
||||
|
||||
public String getLinkColumnName() {
|
||||
return linkColumnName;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue