IDEMPIERE-979:WSearchEditor used in forms don't have popup menu
menu for wtableDirEditor in case hasn't gfield
This commit is contained in:
parent
d6da6ee556
commit
dcaddc41b6
|
|
@ -211,11 +211,13 @@ public class WAllocation extends Allocation
|
|||
row.appendCellChild(organizationLabel.rightAlign());
|
||||
organizationPick.getComponent().setHflex("true");
|
||||
row.appendCellChild(organizationPick.getComponent(),1);
|
||||
organizationPick.showMenu();
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendCellChild(currencyLabel.rightAlign(),1);
|
||||
currencyPick.getComponent().setHflex("true");
|
||||
row.appendCellChild(currencyPick.getComponent(),1);
|
||||
currencyPick.showMenu();
|
||||
row.appendCellChild(multiCurrency,1);
|
||||
row.appendCellChild(autoWriteOff,2);
|
||||
row.appendCellChild(new Space(),1);
|
||||
|
|
|
|||
|
|
@ -174,11 +174,10 @@ ContextMenuListener, IZoomableEditor
|
|||
refreshList();
|
||||
}
|
||||
|
||||
if (gridField != null)
|
||||
{
|
||||
String tableName_temp = lookup.getColumnName(); // Returns AD_Org.AD_Org_ID
|
||||
int posPoint = tableName_temp.indexOf(".");
|
||||
String tableName = tableName_temp.substring(0, posPoint);
|
||||
|
||||
if (tableName.toUpperCase().equals("C_BPARTNER_LOCATION"))
|
||||
{
|
||||
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, true, lookup);
|
||||
|
|
@ -187,6 +186,8 @@ ContextMenuListener, IZoomableEditor
|
|||
}
|
||||
addChangeLogMenu(popupMenu);
|
||||
|
||||
if (gridField != null)
|
||||
{
|
||||
// IDEMPIERE 90
|
||||
boolean isShortListAvailable = false; // Short List available for this lookup
|
||||
if (lookup != null && (lookup.getDisplayType() == DisplayType.TableDir || lookup.getDisplayType() == DisplayType.Table)) // only for Table & TableDir
|
||||
|
|
|
|||
Loading…
Reference in New Issue