We need to add columns in the Kanban Component Programmaticaly and the code below seems to works fine
List<FsprayersStatoTicket> stati = dataManager.load(FsprayersStatoTicket.class).all().list();
stati.forEach(fsprayersStatoTicket -> {
KanbanColumn col = new KanbanColumn(fsprayersStatoTicket.getStato());
kanbanRichieste.addColumn(col);
});
The only problem is on the view that is not able to show data until we clicked the refresh button on the datacontainer filter
We have tried also to update via Code using the following code
List<FsprayersRichiestaIntervento> rics = dataManager.load(FsprayersRichiestaIntervento.class).all().list();
fsprayersRichiestaInterventoesDc.setItems(rics);
fsprayersRichiestaInterventoesDl.setQuery("select e from FsprayersRichiestaIntervento e");
fsprayersRichiestaInterventoesDl.load();