FR [ 2847669 ] 2pack export model validator functionality

https://sourceforge.net/tracker/?func=detail&aid=2847669&group_id=176962&atid=879335
This commit is contained in:
teo_sarca 2009-08-31 12:26:21 +00:00
parent bf7ee44356
commit 5e5e0e79d0
7 changed files with 324 additions and 0 deletions

View File

@ -60,6 +60,7 @@ import org.adempiere.pipo.handler.ImpFormatElementHandler;
import org.adempiere.pipo.handler.ImpFormatRowElementHandler;
import org.adempiere.pipo.handler.MenuElementHandler;
import org.adempiere.pipo.handler.MessageElementHandler;
import org.adempiere.pipo.handler.ModelValidatorElementHandler;
import org.adempiere.pipo.handler.OrgRoleElementHandler;
import org.adempiere.pipo.handler.PreferenceElementHandler;
import org.adempiere.pipo.handler.PrintFormatElementHandler;
@ -238,6 +239,7 @@ public class PackInHandler extends DefaultHandler {
handlers.put("fieldgroup", new FieldGroupElementHandler());
handlers.put("element", new AdElementHandler());
handlers.put("trl", new CommonTranslationHandler());
handlers.put(ModelValidatorElementHandler.TAG_Name, new ModelValidatorElementHandler());
}
/**

View File

@ -48,6 +48,7 @@ import org.adempiere.pipo.handler.FormElementHandler;
import org.adempiere.pipo.handler.ImpFormatElementHandler;
import org.adempiere.pipo.handler.MenuElementHandler;
import org.adempiere.pipo.handler.MessageElementHandler;
import org.adempiere.pipo.handler.ModelValidatorElementHandler;
import org.adempiere.pipo.handler.PrintFormatElementHandler;
import org.adempiere.pipo.handler.ProcessElementHandler;
import org.adempiere.pipo.handler.ReferenceElementHandler;
@ -118,6 +119,7 @@ public class PackOut extends SvrProcess
FieldGroupElementHandler fieldGroupHandler = new FieldGroupElementHandler();
AdElementHandler adElementHandler = new AdElementHandler();
CommonTranslationHandler translationHandler = new CommonTranslationHandler();
ModelValidatorElementHandler modelValidatorHandler = new ModelValidatorElementHandler();
/**
* Prepare - e.g., get Parameters.
@ -307,6 +309,8 @@ public class PackOut extends SvrProcess
createMessage(rs.getInt(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Message_ID), packOutDocument);
else if (Type.compareTo("PFT") == 0)
createPrintFormat(rs.getInt(X_AD_Package_Exp_Detail.COLUMNNAME_AD_PrintFormat_ID), packOutDocument);
else if (Type.compareTo(X_AD_Package_Exp_Detail.TYPE_ModelValidator) == 0)
createModelValidator(rs.getInt(X_AD_Package_Exp_Detail.COLUMNNAME_AD_ModelValidator_ID), packOutDocument);
else if (Type.compareTo("C") == 0){
log.log(Level.INFO,"In PackOut.java handling Code or Other 2pack module creation");
@ -791,6 +795,20 @@ public class PackOut extends SvrProcess
}
}
/**
*
* @param AD_ModelValidator_ID
* @param packOutDocument
* @throws Exception
*/
public void createModelValidator (int AD_ModelValidator_ID, TransformerHandler packOutDocument) throws Exception
{
Env.setContext(getCtx(), X_AD_Package_Exp_Detail.COLUMNNAME_AD_ModelValidator_ID, AD_ModelValidator_ID);
modelValidatorHandler.create(getCtx(), packOutDocument);
getCtx().remove(X_AD_Package_Exp_Detail.COLUMNNAME_AD_ModelValidator_ID);
}
public void copyFile (String sourceName, String copyName ) {
InputStream source; // Stream for reading from the source file.
OutputStream copy; // Stream for writing the copy.

View File

@ -0,0 +1,159 @@
/**
*
*/
package org.adempiere.pipo.handler;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.xml.transform.sax.TransformerHandler;
import org.adempiere.pipo.AbstractElementHandler;
import org.adempiere.pipo.Element;
import org.adempiere.pipo.PackOut;
import org.adempiere.pipo.exception.POSaveFailedException;
import org.compiere.model.I_AD_ModelValidator;
import org.compiere.model.PO;
import org.compiere.model.X_AD_ModelValidator;
import org.compiere.model.X_AD_Package_Exp_Detail;
import org.compiere.util.Env;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* @author Teo Sarca
* <li>FR [ 2847669 ] 2pack export model validator functionality
* https://sourceforge.net/tracker/?func=detail&aid=2847669&group_id=176962&atid=879335
*/
public class ModelValidatorElementHandler extends AbstractElementHandler
{
public static final String TAG_Name = "modelvalidator";
private final List<Integer> validators = new ArrayList<Integer>();
public void startElement(Properties ctx, Element element) throws SAXException
{
String elementValue = element.getElementValue();
Attributes atts = element.attributes;
log.info(elementValue+" "+atts.getValue(I_AD_ModelValidator.COLUMNNAME_Name));
String entitytype = atts.getValue(I_AD_ModelValidator.COLUMNNAME_EntityType);
if (isProcessElement(ctx, entitytype))
{
String name = atts.getValue(I_AD_ModelValidator.COLUMNNAME_Name);
int id = get_IDWithColumn(ctx, I_AD_ModelValidator.Table_Name, I_AD_ModelValidator.COLUMNNAME_Name, name);
final X_AD_ModelValidator validator = new X_AD_ModelValidator(ctx, id, getTrxName(ctx));
final int AD_Backup_ID;
final String Object_Status;
if (id <= 0 && getIntValue(atts, I_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID, 0) <= PackOut.MAX_OFFICIAL_ID)
{
validator.setAD_ModelValidator_ID(getIntValue(atts, I_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID, 0));
}
if (id > 0)
{
AD_Backup_ID = copyRecord(ctx, I_AD_ModelValidator.Table_Name, validator);
Object_Status = "Update";
}
else
{
Object_Status = "New";
AD_Backup_ID = 0;
}
validator.setName(name);
validator.setDescription(getStringValue(atts, I_AD_ModelValidator.COLUMNNAME_Description));
validator.setHelp(getStringValue(atts, I_AD_ModelValidator.COLUMNNAME_Help));
validator.setEntityType(atts.getValue(I_AD_ModelValidator.COLUMNNAME_EntityType));
validator.setModelValidationClass(atts.getValue(I_AD_ModelValidator.COLUMNNAME_ModelValidationClass));
validator.setIsActive(getBooleanValue(atts, I_AD_ModelValidator.COLUMNNAME_IsActive, true));
validator.setSeqNo(getIntValue(atts, I_AD_ModelValidator.COLUMNNAME_SeqNo, 0));
if (validator.save(getTrxName(ctx)) == true)
{
record_log (ctx, 1, validator.getName(),TAG_Name, validator.get_ID(),
AD_Backup_ID, Object_Status,
I_AD_ModelValidator.Table_Name, I_AD_ModelValidator.Table_ID);
}
else
{
record_log (ctx, 0, validator.getName(),TAG_Name, validator.get_ID(),
AD_Backup_ID, Object_Status,
I_AD_ModelValidator.Table_Name, I_AD_ModelValidator.Table_ID);
throw new POSaveFailedException("Failed to save message.");
}
}
else
{
element.skip = true;
}
}
public void endElement(Properties ctx, Element element) throws SAXException
{
}
public void create(Properties ctx, TransformerHandler document) throws SAXException
{
final int AD_ModelValidator_ID = Env.getContextAsInt(ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_ModelValidator_ID);
if (validators.contains(AD_ModelValidator_ID))
return;
validators.add(AD_ModelValidator_ID);
final X_AD_ModelValidator validator = new X_AD_ModelValidator(ctx, AD_ModelValidator_ID, null);
AttributesImpl atts = new AttributesImpl();
createMessageBinding(atts, validator);
document.startElement("", "", TAG_Name, atts);
document.endElement("", "", TAG_Name);
}
private AttributesImpl createMessageBinding(AttributesImpl atts, X_AD_ModelValidator validator)
{
atts.clear();
if (validator.getAD_ModelValidator_ID() <= PackOut.MAX_OFFICIAL_ID)
{
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID, validator);
}
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_Name, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_Description, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_Help, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_ModelValidationClass, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_EntityType, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_IsActive, validator);
addAttribute(atts, X_AD_ModelValidator.COLUMNNAME_SeqNo, validator);
return atts;
}
protected boolean getBooleanValue(Attributes atts, String qName, boolean defaultValue)
{
String s = atts.getValue(qName);
return s != null ? Boolean.valueOf(s) : defaultValue;
}
protected int getIntValue(Attributes atts, String qName, int defaultValue)
{
Object o = atts.getValue(qName);
if (o == null)
return defaultValue;
if (o instanceof Number)
return ((Number)o).intValue();
return Integer.parseInt(o.toString());
}
private final void addAttribute(AttributesImpl atts, String name, PO po)
{
Object value = po.get_Value(name);
atts.addAttribute("", "", name, "CDATA", toStringAttribute(value));
}
private final String toStringAttribute(Object value)
{
if (value == null)
return "";
if (value instanceof Boolean)
return ((Boolean)value).booleanValue() == true ? "true" : "false";
return value.toString();
}
}

View File

@ -105,6 +105,17 @@ public interface I_AD_Package_Exp_Detail
public I_AD_Message getAD_Message() throws RuntimeException;
/** Column name AD_ModelValidator_ID */
public static final String COLUMNNAME_AD_ModelValidator_ID = "AD_ModelValidator_ID";
/** Set Model Validator */
public void setAD_ModelValidator_ID (int AD_ModelValidator_ID);
/** Get Model Validator */
public int getAD_ModelValidator_ID();
public I_AD_ModelValidator getAD_ModelValidator() throws RuntimeException;
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";

View File

@ -229,6 +229,42 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
return ii.intValue();
}
public I_AD_ModelValidator getAD_ModelValidator() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_AD_ModelValidator.Table_Name);
I_AD_ModelValidator result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_ModelValidator)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ModelValidator_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw new RuntimeException( e );
}
return result;
}
/** Set Model Validator.
@param AD_ModelValidator_ID Model Validator */
public void setAD_ModelValidator_ID (int AD_ModelValidator_ID)
{
if (AD_ModelValidator_ID < 1)
set_Value (COLUMNNAME_AD_ModelValidator_ID, null);
else
set_Value (COLUMNNAME_AD_ModelValidator_ID, Integer.valueOf(AD_ModelValidator_ID));
}
/** Get Model Validator.
@return Model Validator */
public int getAD_ModelValidator_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_ModelValidator_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set AD_Package_Code_New.
@param AD_Package_Code_New AD_Package_Code_New */
public void setAD_Package_Code_New (String AD_Package_Code_New)
@ -978,6 +1014,8 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
public static final String TYPE_PrintFormat = "PFT";
/** Reference = REF */
public static final String TYPE_Reference = "REF";
/** Model Validator = MV */
public static final String TYPE_ModelValidator = "MV";
/** Set Type.
@param Type
Type of Validation (SQL, Java Script, Java Language)

View File

@ -0,0 +1,48 @@
-- Aug 31, 2009 2:28:36 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53504,50004,TO_DATE('2009-08-31 14:28:33','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Model Validator',TO_DATE('2009-08-31 14:28:33','YYYY-MM-DD HH24:MI:SS'),0,'MV')
;
-- Aug 31, 2009 2:28:36 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53504 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Aug 31, 2009 2:29:47 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,57958,53225,0,19,50006,'AD_ModelValidator_ID',TO_DATE('2009-08-31 14:29:46','YYYY-MM-DD HH24:MI:SS'),0,'D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Model Validator',0,TO_DATE('2009-08-31 14:29:46','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Aug 31, 2009 2:29:47 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=57958 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Aug 31, 2009 2:30:27 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE AD_Package_Exp_Detail ADD AD_ModelValidator_ID NUMBER(10) DEFAULT NULL
;
ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT admodelvalidator_adpackageexpdetail FOREIGN KEY (AD_ModelValidator_ID)
REFERENCES AD_ModelValidator (AD_ModelValidator_ID);
-- Aug 31, 2009 2:32:08 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,57958,57418,0,50006,TO_DATE('2009-08-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),0,10,'D','Y','Y','Y','N','N','N','N','N','Model Validator',TO_DATE('2009-08-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Aug 31, 2009 2:32:08 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=57418 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Aug 31, 2009 2:32:28 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@Type@=MV',Updated=TO_DATE('2009-08-31 14:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=57418
;
-- Aug 31, 2009 2:54:45 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AD_Window_ID=53003,Updated=TO_DATE('2009-08-31 14:54:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53014
;

View File

@ -0,0 +1,48 @@
-- Aug 31, 2009 2:28:36 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53504,50004,TO_TIMESTAMP('2009-08-31 14:28:33','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Model Validator',TO_TIMESTAMP('2009-08-31 14:28:33','YYYY-MM-DD HH24:MI:SS'),0,'MV')
;
-- Aug 31, 2009 2:28:36 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53504 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Aug 31, 2009 2:29:47 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,57958,53225,0,19,50006,'AD_ModelValidator_ID',TO_TIMESTAMP('2009-08-31 14:29:46','YYYY-MM-DD HH24:MI:SS'),0,'D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Model Validator',0,TO_TIMESTAMP('2009-08-31 14:29:46','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Aug 31, 2009 2:29:47 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=57958 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Aug 31, 2009 2:30:27 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE AD_Package_Exp_Detail ADD COLUMN AD_ModelValidator_ID NUMERIC(10) DEFAULT NULL
;
ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT admodelvalidator_adpackageexpdetail FOREIGN KEY (AD_ModelValidator_ID)
REFERENCES AD_ModelValidator (AD_ModelValidator_ID);
-- Aug 31, 2009 2:32:08 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,57958,57418,0,50006,TO_TIMESTAMP('2009-08-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),0,10,'D','Y','Y','Y','N','N','N','N','N','Model Validator',TO_TIMESTAMP('2009-08-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Aug 31, 2009 2:32:08 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=57418 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Aug 31, 2009 2:32:28 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@Type@=MV',Updated=TO_TIMESTAMP('2009-08-31 14:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=57418
;
-- Aug 31, 2009 2:54:45 PM EEST
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AD_Window_ID=53003,Updated=TO_TIMESTAMP('2009-08-31 14:54:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53014
;