I am trying to set a default value for an entity attribute from my screen. I see that there is something called defaultValues with the Import with Wizard. I trying to use this code, to set the attribute “load” with a pre-specified value:
HashMap<String,Object> options = new HashMap<>();
options.put(“load”, load);
HashMap<String,Object> params = new HashMap<>();
params.put(“defaultValues”, options);
screenBuilders.editor(ImportConfiguration.class, this)
.withScreenId("ddcdi$import-with-import-configuration-wizard")
.withOpenMode(OpenMode.DIALOG)
.editEntity(ic)
.withOptions(new MapScreenOptions(params))
.show()
.addAfterCloseListener( ev -> {
cr21othdrWkDl.setParameter("load", load);
cr21othdrWkDl.load();
});
How to use the defaultValues to specify the default for an entity attribute ?
How can I pass this as an option to the wizard ?
CK