diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java index 4b28577afd..b05d61dafd 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java @@ -36,6 +36,7 @@ import org.adempiere.webui.event.WTableModelEvent; import org.adempiere.webui.window.FDialog; import org.compiere.minigrid.ColumnInfo; import org.compiere.minigrid.IDColumn; +import org.compiere.model.I_C_ElementValue; import org.compiere.util.DB; import org.compiere.util.DisplayType; import org.compiere.util.Env; @@ -119,6 +120,17 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener if (queryValue != null && queryValue.length() > 0) { + String separator = I_C_ElementValue.Table_Name.equalsIgnoreCase(p_tableName) ? "-" : "_"; + if (txt2.isVisible()) + { + String[] values = queryValue.split("["+separator+"]"); + if (values != null && values.length == 2) + { + txt1.setValue(values[0]); + txt2.setValue(values[1]); + } + } + executeQuery(); renderItems(); }