@Override
public void createControls(ICdmFormElement element, int style) {
comboStatisticalMeasure = formFactory.createDefinedTermComboElementDto(TermType.StatisticalMeasure, element, "Statistical measure", null, style);
+ if (entity != null){
+ setEntity(entity);
+ }
}
@Override
public void setEntity(StatisticalMeasure entity) {
this.entity = entity;
- if(entity.getId()!=0){
+ if(entity.getId()!=0 && comboStatisticalMeasure != null){
comboStatisticalMeasure.setSelection(entity);
comboStatisticalMeasure.removeEmptyElement();
}