Opraven refresh gridů na záložkách "Má střediska", "Mé komise" a "Vše"
po smazání nebo editaci záznamu.
This commit is contained in:
@@ -191,6 +191,7 @@ public class ListViewModel<T extends DataModel> {
|
|||||||
ListViewModel.this, "dataList");
|
ListViewModel.this, "dataList");
|
||||||
BindUtils.postNotifyChange(null, null,
|
BindUtils.postNotifyChange(null, null,
|
||||||
ListViewModel.this, "dataBean");
|
ListViewModel.this, "dataBean");
|
||||||
|
BindUtils.postGlobalCommand(null, null, "reloadRelated", null);
|
||||||
} catch (DataIntegrityViolationException e) {
|
} catch (DataIntegrityViolationException e) {
|
||||||
Messagebox.show(StringUtils.localize("DbCannotDelete"), StringUtils.localize("Error"), Messagebox.OK, Messagebox.ERROR);
|
Messagebox.show(StringUtils.localize("DbCannotDelete"), StringUtils.localize("Error"), Messagebox.OK, Messagebox.ERROR);
|
||||||
} catch (AccessDeniedException e) {
|
} catch (AccessDeniedException e) {
|
||||||
@@ -237,9 +238,8 @@ public class ListViewModel<T extends DataModel> {
|
|||||||
dataList.set(selIndex, editBean);
|
dataList.set(selIndex, editBean);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newRec) {
|
|
||||||
BindUtils.postGlobalCommand(null, null, "reloadRelated", null);
|
BindUtils.postGlobalCommand(null, null, "reloadRelated", null);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GlobalCommand
|
@GlobalCommand
|
||||||
|
|||||||
Reference in New Issue
Block a user