diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java index e8570fae9b..75413f12e6 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PoFiller.java @@ -41,16 +41,19 @@ public class PoFiller{ this.handler = handler; } + protected String getStringValue (String columnName){ + Element e = element.properties.get(columnName); + String value = e != null ? e.contents.toString() : null; + + value = "".equals(value) ? null : value; + return value; + } /** * * @param columnName */ public void setString(String columnName){ - - Element e = element.properties.get(columnName); - String value = e != null ? e.contents.toString() : null; - - value = "".equals(value) ? null : value; + String value = getStringValue(columnName); Object oldValue = po.get_Value(columnName); if (value == null && oldValue == null) @@ -288,6 +291,12 @@ public class PoFiller{ setInteger(qName); } else if (info.getColumnClass(index) == Timestamp.class) { setTimestamp(qName); + }else if(DisplayType.TextLong == info.getColumnDisplayType(index)) {// export column from system have type is normal string, but import to system have this column but type is textlong (mean blob) + if (getStringValue (qName) != null) { + setString(qName); + }else { + setBlob(qName); + } } else if (DisplayType.isLOB(info.getColumnDisplayType(index))) { setBlob(qName); } else {