Unable to update always updateable lookup field

This commit is contained in:
Heng Sin Low 2009-05-06 02:56:57 +00:00
parent 4ea2b2fe24
commit c9e983e3fb
1 changed files with 17 additions and 5 deletions

View File

@ -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
{