Hi,
I have a data that required to edit only. How to set default value at edit screen?
If “create” action, can set default at onInitEntity(event) method. But if in “edit” action, is that any way to set default value?
I had tried with code below:
@Subscribe
public void onBeforeShow(BeforeShowEvent event) {
getScreenData().loadAll();
instanceDc.getItem().setEditTime(LocalDateTime.now());
}
But no turn up the default value.
Your help is much appreciated.
Thanks.
Adrian