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:
parent
7bbf2370b1
commit
2336eaeb3f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue