IDEMPIERE-5946 : Drill Assistant Error - For input string: "null" (#2549)
* IDEMPIERE-5946 : Drill Assistant Error - For input string: "null" * IDEMPIERE-5946 : show drill assistant when value is not null
This commit is contained in:
parent
f88b49f1ff
commit
b9d6cdc4e9
|
@ -373,6 +373,14 @@ public class WEditorPopupMenu extends Menupopup implements EventListener<Event>
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove drill assistant menu item
|
||||
*/
|
||||
public void showDrillAssistant(boolean show) {
|
||||
if (drillItem != null)
|
||||
drillItem.setVisible(show);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the new and update items from the menu - for ChosenList
|
||||
*/
|
||||
|
|
|
@ -361,6 +361,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
{
|
||||
getComponent().setText("");
|
||||
}
|
||||
popupMenu.showDrillAssistant(value != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -469,7 +469,8 @@ ContextMenuListener, IZoomableEditor
|
|||
|
||||
if (getComponent() instanceof EditorAutoComplete && gridField!=null) // IDEMPIERE-4442 Fix NPE, for Autocomplete in non Grid Usage.
|
||||
updateStyle();
|
||||
}
|
||||
}
|
||||
popupMenu.showDrillAssistant(value != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -514,6 +514,10 @@ public class DrillReportCtl {
|
|||
MProcessDrillRulePara sPara = sParams[p];
|
||||
if(processPara.getColumnName().equals(m_ColumnName))
|
||||
{
|
||||
if(m_Value == null) {
|
||||
if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + " - empty");
|
||||
continue;
|
||||
}
|
||||
iPara.setParameter(DisplayType.isID(sPara.getDisplayType()) ? new BigDecimal(String.valueOf(m_Value)) : String.valueOf(m_Value));
|
||||
iPara.setInfo(!Util.isEmpty(m_DisplayValue) ? m_DisplayValue : String.valueOf(m_Value));
|
||||
iParams.add(iPara);
|
||||
|
|
Loading…
Reference in New Issue