Hi Appian Community,
I’m working on an Editable Grid and need some help with the following requirements:
Could you please help me with:
Thanks in advance for your assistance!
Discussion posts and replies are publicly visible
Do you already have some code you can share?
No !
You could start with this recipe.
https://docs.appian.com/suite/help/24.4/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html
Hello abduss0004 ,
Here's something that you can start with.
a!localVariables( local!gridData: { { value1: "Alex", value2: "20", value3: "Europe", radioOption: null }, { value1: "Jake", value2: "22", value3: "Australia", radioOption: null } }, a!formLayout( contents: { a!gridLayout( label: "My Grid", headerCells: { a!gridLayoutHeaderCell(label: "Name"), a!gridLayoutHeaderCell(label: "Age"), a!gridLayoutHeaderCell(label: "Country"), a!gridLayoutHeaderCell(label: "Choice") }, columnConfigs: {}, rows: a!forEach( items: local!gridData, expression: a!gridRowLayout( contents: { a!textfield( label: "Field 1", value: fv!item.value1, readOnly: true ), a!textfield( label: "Field 2", value: fv!item.value2, readOnly: true ), a!textfield( label: "Field 3", value: fv!item.value3, readOnly: true ), a!radioButtonField( label: "Select Option", value: fv!item.radioOption, saveInto: fv!item.radioOption, choiceLayout: "COMPACT", choiceLabels: { "1", "2", "3" }, choiceValues: { 1, 2, 3 } ) } ) ) ) }, buttons: a!buttonLayout( primaryButtons: a!buttonWidget( label: "Submit", disabled: contains( touniformstring(local!gridData.radioOption), null() ) ) ) ) )