Can not export the Column with search and table reference

kind regards
Victor Perez
www.e-evolution.com

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=879332
This commit is contained in:
vpj-cd 2010-06-05 19:29:24 +00:00
parent 322a82b1c9
commit dba57464a6
1 changed files with 13 additions and 2 deletions

View File

@ -251,7 +251,7 @@ public class ExportHelper {
// process single XML Attribute // process single XML Attribute
// Create new element // Create new element
Element newElement = outDocument.createElement(formatLine.getValue()); Element newElement = outDocument.createElement(formatLine.getValue());
log.info("Format Line Seach key"+ formatLine.getValue()); log.info("Format Line Seach key: "+ formatLine.getValue());
if (formatLine.getAD_Column_ID() == 0) { if (formatLine.getAD_Column_ID() == 0) {
throw new Exception(Msg.getMsg (masterPO.getCtx(), "EXPColumnMandatory")); throw new Exception(Msg.getMsg (masterPO.getCtx(), "EXPColumnMandatory"));
} }
@ -420,7 +420,18 @@ public class ExportHelper {
whereClause.append(" AND ").append(embeddedFormat.getWhereClause()); whereClause.append(" AND ").append(embeddedFormat.getWhereClause());
} }
Object value = masterPO.get_Value(tableEmbedded.getTableName() + "_ID"); String columnName = "";
if(formatLine.getAD_Reference_ID()== DisplayType.Table | formatLine.getAD_Reference_ID()==DisplayType.Search)
{
MColumn column = MColumn.get(masterPO.getCtx(), formatLine.getAD_Column_ID());
columnName = column.getColumnName();
}
else
{
columnName = tableEmbedded.getTableName() + "_ID";
}
Object value = masterPO.get_Value(columnName);
if (value == null) if (value == null)
{ {
continue; continue;