2 tablas donde cargo en una "la marca de coche" y en otra para cada coche , cargo "sus modelos".
Entonces tu seccionas un botón de la tabla "coche" y te abre otra tabla "las marcas" del coche" alli seleccionas mediantes checkbox , una vez seleccionados pulso un botón que tiene el siguiente codigo
Código PHP:
           int selectedRows2 = getTableRowGroup6().getSelectedRowsCount();
        RowKey[] selectedRowKeys2 = getTableRowGroup6().getSelectedRowKeys();
      
       
        if (selectedRowKeys2.length>0)
        {
            for(int i=0; i< selectedRowKeys2.length; i++)
            {
            int rowId = Integer.parseInt(selectedRowKeys2[i].getRowId()) + 1;
            String login = t1DataProvider.getValue("campo1", selectedRowKeys2[i]).toString();
            String tienda = t1DataProvider.getValue("campo2", selectedRowKeys2[i]).toString();
            String desc = t1DataProvider.getValue("campo3", selectedRowKeys2[i]).toString();
            }
        } 
    salu2 radge
 

