Multidropdown in editable grid is working weird. I have a multidropdown on a editable grid which is not allowing me select all the values what i want. The list on screen should appear until i click somewhere in the form instead i have to click the DD each time and then select a value. The selected values are stored in an array in a CDT which is correct.
is this the default behavior of Multidropdown in a editable grid/ any work around ?
Discussion posts and replies are publicly visible
What Appian version are you on? I've just confirmed that it seems to work expected for me at least in the generic example I was able to write quickly...
a!localVariables( local!colors: { "red", "green", "blue", "yellow", "purple", "orange", "brown", "maroon", "navy", "white" }, local!rowData: { { id: 1, name: "first", colorSelections: {} }, { id: 2, name: "second", colorSelections: {"blue"} } }, a!sectionLayout( contents: { a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Name"), a!gridLayoutHeaderCell(label: "Color Selections") }, rows: a!forEach( local!rowData, a!gridRowLayout( contents: { a!richTextDisplayField( value: fv!item.name ), /*a!textField(*/ /*value: fv!item.name,*/ /*saveInto: fv!item.name*/ /*),*/ a!multipleDropdownField( choiceLabels: local!colors, choiceValues: local!colors, value: a!forEach(fv!item.colorSelections, tostring(fv!item)), saveInto: fv!item.colorSelections, placeholder: "--select color(s)--" ) } ) ) ), a!paragraphField( label: "DEBUG", value: joinarray(local!rowData, char(10)) ) } ) )
I figured out why this is working weird.
I just replaced from using index (local!cdt[index].field) to fv!item and it worked as expected.
cool, good job figuring it out and thanks for confirming.