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,19 +174,20 @@ ContextMenuListener, IZoomableEditor
|
|||
refreshList();
|
||||
}
|
||||
|
||||
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);
|
||||
} else {
|
||||
popupMenu = new WEditorPopupMenu(zoom, true, isShowPreference(), false, false, false, lookup);
|
||||
}
|
||||
addChangeLogMenu(popupMenu);
|
||||
|
||||
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);
|
||||
} else {
|
||||
popupMenu = new WEditorPopupMenu(zoom, true, isShowPreference(), false, false, false, lookup);
|
||||
}
|
||||
addChangeLogMenu(popupMenu);
|
||||
|
||||
// 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
|
||||
|
@ -199,7 +200,7 @@ ContextMenuListener, IZoomableEditor
|
|||
lookup.setShortList(true);
|
||||
getLabel().setText(">" + getGridField().getHeader() + "<");
|
||||
actionRefresh();
|
||||
|
||||
|
||||
// add in popup menu
|
||||
Menuitem searchMode;
|
||||
searchMode = new Menuitem();
|
||||
|
|
Loading…
Reference in New Issue