IDEMPIERE-5867:autocomplete show different list for table and table dir (#2028)
* IDEMPIERE-5867:autocomplete show difference list for table and table dir * IDEMPIERE-5867:fix for IDEMPIERE-5866 test case: go to "Reference" window and choose for record "M_Product BOM (stocked)" go to "Table Validation" tab and choose "Display Value" = true
This commit is contained in:
parent
be42d5946d
commit
e27b588754
|
@ -604,7 +604,9 @@ public class MLookupFactory
|
||||||
lookupDisplayColumns.add(lookupDisplayColumn != null ? lookupDisplayColumn : DisplayColumn);
|
lookupDisplayColumns.add(lookupDisplayColumn != null ? lookupDisplayColumn : DisplayColumn);
|
||||||
retValue.lookupDisplayColumns = lookupDisplayColumns;
|
retValue.lookupDisplayColumns = lookupDisplayColumns;
|
||||||
if(list != null) {
|
if(list != null) {
|
||||||
retValue.lookupDisplayColumnNames = new ArrayList<>();
|
retValue.lookupDisplayColumnNames = new ArrayList<>();
|
||||||
|
if (isValueDisplayed)
|
||||||
|
retValue.lookupDisplayColumnNames.add("Value");
|
||||||
for (LookupDisplayColumn ldc : list) {
|
for (LookupDisplayColumn ldc : list) {
|
||||||
retValue.lookupDisplayColumnNames.add(ldc.ColumnName);
|
retValue.lookupDisplayColumnNames.add(ldc.ColumnName);
|
||||||
}
|
}
|
||||||
|
@ -856,6 +858,12 @@ public class MLookupFactory
|
||||||
lookupDisplayColumns.add(ldc.ColumnName);
|
lookupDisplayColumns.add(ldc.ColumnName);
|
||||||
}
|
}
|
||||||
lInfo.lookupDisplayColumns = lookupDisplayColumns;
|
lInfo.lookupDisplayColumns = lookupDisplayColumns;
|
||||||
|
if(list != null) {
|
||||||
|
lInfo.lookupDisplayColumnNames = new ArrayList<>();
|
||||||
|
for (LookupDisplayColumn ldc : list) {
|
||||||
|
lInfo.lookupDisplayColumnNames.add(ldc.ColumnName);
|
||||||
|
}
|
||||||
|
}
|
||||||
s_cacheRefTable.put(cacheKey.toString(), lInfo.cloneIt());
|
s_cacheRefTable.put(cacheKey.toString(), lInfo.cloneIt());
|
||||||
return lInfo;
|
return lInfo;
|
||||||
} // getLookup_TableDir
|
} // getLookup_TableDir
|
||||||
|
|
Loading…
Reference in New Issue