It's anyway to save true or false value in differents columns of database but in one unique checkboxfield?

Certified Associate Developer

Hi,

my trouble here is that I don't know how can I save true or false in differents boolean columns in my database. I tried something like that:

a!checkboxField(
                label: "",
                labelPosition: "ABOVE",
                choiceLabels: { "Limpieza","Plaga","Manipulador" },
                choiceValues: { "Limpieza","Plaga","Manipulador" },
                value: {if(isnull(fv!item.inLimpieza),{},"Limpieza"),if(isnull(fv!item.inPlaga),{},"Plaga"),if(isnull(fv!item.inManipulacion),{},"Manipulador")},
                saveInto:{
                  a!save(
                    fv!item.inLimpieza,
                    if(contains( save!value, "Limpieza" ), true,false)
                  ),
                  a!save(
                    fv!item.inPlaga,
                    if(contains( save!value, "Plaga" ), true, false)
                  ),
                  a!save(
                    fv!item.inManipulacion,
                    if(contains( save!value, "Manipulador" ), true, false)
                  ),
                },
                disabled: ri!readOnly,
                validations: {}
              ),

But It's not wortking correctly.

Actually, I have every data of every column in differents checkbox, but I would like to group all my checkbox in only one. Thanks for your help!

  Discussion posts and replies are publicly visible