|
|
|
@ -191,6 +191,7 @@ public class ListViewModel<T extends DataModel> {
|
|
|
|
|
ListViewModel.this, "dataList");
|
|
|
|
|
BindUtils.postNotifyChange(null, null,
|
|
|
|
|
ListViewModel.this, "dataBean");
|
|
|
|
|
BindUtils.postGlobalCommand(null, null, "reloadRelated", null);
|
|
|
|
|
} catch (DataIntegrityViolationException e) {
|
|
|
|
|
Messagebox.show(StringUtils.localize("DbCannotDelete"), StringUtils.localize("Error"), Messagebox.OK, Messagebox.ERROR);
|
|
|
|
|
} catch (AccessDeniedException e) {
|
|
|
|
@ -237,9 +238,8 @@ public class ListViewModel<T extends DataModel> {
|
|
|
|
|
dataList.set(selIndex, editBean);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (newRec) {
|
|
|
|
|
BindUtils.postGlobalCommand(null, null, "reloadRelated", null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GlobalCommand
|
|
|
|
|