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
Refer this
https://community.appian.com/discussions/f/user-interface/14064/a-multipledropdownfield-that-depends-on-another-multipledropdownfield-s-choices-is-not-updated-dynamically
Hi,
It's a bit difficult to tell exactly what issue you are having. Can you post a code snippet or more information about your issue? Do you have a variable that is used in both rows or different variables?
Thanks!
Sure Peter..will share it in sometimes. Thanks
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: {} ) } ) } ) } )