lundi 29 novembre 2021

Multiple checkbox filtering tornadofx

i'm new to tornadoFx dekstop developing and faced with a problem of filtering my tableview formed by psql, using checkboxes while i do it with a one checkbox is ok

checkbox("От кого") {
                                        action(){
                                            calls.setAll(
                                                psqlController.filteredResultCaller(input.value)
                                                    .map { it.toTableModel() })
                                            input.value = ""
                                        }
                                

}

and the same for calles

'checkbox("Кому") {

                                    action {
                                        calls.setAll(
                                            psqlController.filteredResultCallee(input.value)
                                                .map { it.toTableModel() })
                                        input.value = ""
                                    }
                                }'

i wanna somehow combine theese 2 selectors for making 1 request to db by 2 filters




Aucun commentaire:

Enregistrer un commentaire