Unable to update always updateable lookup field
This commit is contained in:
parent
4ea2b2fe24
commit
c9e983e3fb
|
@ -49,11 +49,23 @@ public class GridTabDataBinder implements ValueChangeListener {
|
|||
Object source = e.getSource();
|
||||
if (source instanceof WEditor)
|
||||
{
|
||||
if (!((WEditor)source).isReadWrite())
|
||||
{
|
||||
logger.config("(" + gridTab.toString() + ") " + e.getPropertyName());
|
||||
return;
|
||||
}
|
||||
// Elaine 2009/05/06
|
||||
WEditor editor = (WEditor) source;
|
||||
GridField gridField = editor.getGridField();
|
||||
|
||||
if(gridField != null)
|
||||
{
|
||||
if(!gridField.isEditable(true))
|
||||
{
|
||||
logger.config("(" + gridTab.toString() + ") " + e.getPropertyName());
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(!editor.isReadWrite())
|
||||
{
|
||||
logger.config("(" + gridTab.toString() + ") " + e.getPropertyName());
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue