Hi All,
Need you guidance!
I am using a multipleDropdownField as one of my editable grid column. I need to remove the choices in row 2 of my grid which are already selected in row 1. kindly help me on this.
Regards/Mp
Discussion posts and replies are publicly visible
Your problem may be something related to this solution?load( local!opciones: { "Opción 1", "Opción 2", "Opción 3" }, { a!gridLayout( headerCells: { a!gridLayoutHeaderCell( label: "Prueba MultipleDropdown" ) }, rows: { a!gridRowLayout( contents: { a!multipleDropdownField( label: "Desplegable múltiple", labelPosition: "ABOVE", choiceLabels: local!opciones, choiceValues: local!opciones, saveInto: { ri!valor, a!save( local!opciones, remove( local!opciones, wherecontains( save!value, local!opciones ) ) ) }, placeholder: "--Seleccione--", validations: {} ) } ), a!gridRowLayout( contents: { a!multipleDropdownField( label: "Desplegable múltiple", labelPosition: "ABOVE", choiceLabels: local!opciones, choiceValues: local!opciones, saveInto: { ri!valor2, a!save( local!opciones, remove( local!opciones, wherecontains( save!value, local!opciones ) ) ) }, placeholder: "--Seleccione--", validations: {} ) } ) } ) } )You can try it in a test interface. Hope this can help you :)
load( local!opciones: { "Opción 1", "Opción 2", "Opción 3" }, { a!gridLayout( headerCells: { a!gridLayoutHeaderCell( label: "Prueba MultipleDropdown" ) }, rows: { a!gridRowLayout( contents: { a!multipleDropdownField( label: "Desplegable múltiple", labelPosition: "ABOVE", choiceLabels: local!opciones, choiceValues: local!opciones, saveInto: { ri!valor, a!save( local!opciones, remove( local!opciones, wherecontains( save!value, local!opciones ) ) ) }, placeholder: "--Seleccione--", validations: {} ) } ), a!gridRowLayout( contents: { a!multipleDropdownField( label: "Desplegable múltiple", labelPosition: "ABOVE", choiceLabels: local!opciones, choiceValues: local!opciones, saveInto: { ri!valor2, a!save( local!opciones, remove( local!opciones, wherecontains( save!value, local!opciones ) ) ) }, placeholder: "--Seleccione--", validations: {} ) } ) } ) } )