use tab name instead of ad_tab_id so that we can also build unit testing script for user maintained extension

This commit is contained in:
Heng Sin Low 2010-07-09 18:36:13 +08:00
parent 7bbf2370b1
commit 2336eaeb3f
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ public abstract class WEditor implements EventListener, PropertyChangeListener
} }
this.setComponent(comp); this.setComponent(comp);
comp.setAttribute("zk_component_prefix", "Field_" + gridField.getColumnName() + "_" + gridField.getAD_Tab_ID() + "_" + gridField.getWindowNo() + "_"); String gridTabName = gridField.getGridTab() != null
? "_" + gridField.getGridTab().getName() : "";
comp.setAttribute("zk_component_prefix", "Field_" + gridField.getColumnName() + gridTabName);
this.gridField = gridField; this.gridField = gridField;
this.setMandatory(gridField.isMandatory(false)); this.setMandatory(gridField.isMandatory(false));
this.readOnly = gridField.isReadOnly(); this.readOnly = gridField.isReadOnly();