Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin 8 (GRID DYNAMIC)
Is it possible, from a SQL (Dynamica) already feeds directly a GRID ...
Example I want to set up a location where the user does SQL query, and show the result in GRID
DaoGenerico<Object> dao= new DaoGenerico<Object>("data000",Objects.class);
List<Map<String, Object>> sql = dao.buscarPorSqlQueryTransformers("SELECT cliente,nombre,dirección FROM clientes where baja ='N'");
ListDataProvider<Map<String, Object>> lista= new ListDataProvider<Map<String,Object>>(sql);
Grid<Map<String, Object>> grid= new Grid<Map<String,Object>>();
grid.setDataProvider(lista);
grid.addColumn((v)-> v.get("cliente")).setCaption("Cliente");
grid.addColumn((v)-> v.get("nombre")).setCaption("Nombre");
grid.addColumn((v)-> v.get("dirección")).setCaption("Dirección");
layout.addComponents(grid);