IDEMPIERE-6089 Address refresh issue (#2313)
This commit is contained in:
parent
6ab6878eeb
commit
ca6bb3e335
|
@ -190,12 +190,12 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
getComponent().getTextbox().focus();
|
getComponent().getTextbox().focus();
|
||||||
m_value = ld.getValue();
|
|
||||||
//
|
//
|
||||||
if (!ld.isChanged())
|
if (!ld.isChanged())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Data Binding
|
// Data Binding
|
||||||
|
m_value = ld.getValue();
|
||||||
int C_Location_ID = 0;
|
int C_Location_ID = 0;
|
||||||
if (m_value != null)
|
if (m_value != null)
|
||||||
C_Location_ID = m_value.getC_Location_ID();
|
C_Location_ID = m_value.getC_Location_ID();
|
||||||
|
@ -206,7 +206,7 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
|
||||||
ValueChangeEvent vc = new ValueChangeEvent(WLocationEditor.this,getColumnName(),null,ii);
|
ValueChangeEvent vc = new ValueChangeEvent(WLocationEditor.this,getColumnName(),null,ii);
|
||||||
fireValueChange(vc);
|
fireValueChange(vc);
|
||||||
}
|
}
|
||||||
setValue(ii);
|
getComponent().setText(m_value != null ? m_value.toString() : null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ld.addEventListener(Events.ON_OPEN, new EventListener<OpenEvent>() {
|
ld.addEventListener(Events.ON_OPEN, new EventListener<OpenEvent>() {
|
||||||
|
|
Loading…
Reference in New Issue