I open a view like this
viewNavigators.detailView(dispositivoAntincendioImpiantoesDataGrid)
.newEntity()
.withViewClass(DispositivoAntincendioImpiantoDetailView.class)
.withAfterNavigationHandler(afterViewNavigationEvent → {
DispositivoAntincendioImpiantoDetailView view = afterViewNavigationEvent.getView();
view.setImpianto(getEditedEntity());
view.setNumeroDispositivo();
view.setTipoDisp(tipo.getValue());
})
.withBackwardNavigation(true)
.navigate();
}
I would like to manage the operations to be done when the view closes. How can I do it ?